Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
- Enable HTML5 Tools module, go to the setting, check
Alter publication date markup
and press Save. - Open any page with comments. Subbmitted information will be like
Submitted by admin on <time pubdate="pubdate" datetime="2013-01-06T18:58:07+04:00">Sun, 01/06/2013 - 18:58</time>
Screenshot:
Comment | File | Size | Author |
---|---|---|---|
html5_tools_apaptivetheme_bug.png | 8.79 KB | Plazik |
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedAT already uses time element and the correct date time functions, so no point in supporting this module.
Also html5 tools does not use the correct ISO8601 date time format, instead they use format c which is wrong.
Comment #2
hass CreditAttribution: hass commentedWhy is c wrong? Per http://www.php.net/manual/en/function.date.php it's the iso8601 format.
Aside of this it would be good to fix these theming bug.
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz commentedI mixed that up regarding the formats, sorry I have been pretty ill the past while and I did not check just went on vague memories. I did extensive research on this at the time and ended up writing a custom date format just for datetime, because the html5 requirements for datetime attribute are very specific and it had to be a custom format:
'Y-m-d\TH:i:s\Z'
. Specs may have changed, but at the time its what I had to do.Anyway, I am not going to change this now because there is no real bug and changing it now is just far too late, it was at the time this was first posted which is why I closed it. What the OP is asking is to remove the time element, which can't fly due to existing themes.
Comment #4
hass CreditAttribution: hass commentedThere is a bug as HTML code is checkplained. This is clearly a bug. Please see the screenshot. HTML code must never been shown on a page.
Comment #5
Jeff Burnz CreditAttribution: Jeff Burnz commentedSince we removed the permalink on the comment submitted by date (aka wordpress style of yore) there is no sanity check, what will happen how if you turn on the html5 tools option to use time element it will get nested inside the theme provided time element, the fix for that is turn off the feature in html5 tools, the theme already provides this element on date time in comments, articles and aggregator items etc.