24 hour time format, formats to wrong times
Closed this issue · 1 comments
tmeers commented
When trying to format a 24 hour time of 1:45pm (13:45) today, at 3:00pm it formats to "5 hours ago".
<time class="age" datetime="2013-08-26T13:45:00" title="2013-08-26T13:45:00">5 hours ago</time>
It's as if it's trying to display as UTC time.
ksylvest commented
@tmeers What time zone are you trying to display in? The library uses the default date parsing built into the JavaScript Date
object which will parse all unspecified times into Greenwich Mean Time (GMT). If you don't want your times in GMT you should include a time zone. For example:
<time datetime="2013-09-01 5:00:00 PM PST" class="age">September 1, 2013 5:00 PM PST</time>
If you have any further issues please re-open.