Added docs about built-in time zone support

assuming proper ISO 8601 timestamps
This commit is contained in:
Ryan McGeary 2012-06-04 12:18:42 -04:00
parent 7866aec323
commit d09fbe5247

View file

@ -159,6 +159,16 @@ jQuery(document).ready(function() {
jQuery("time.timeago").timeago();
});</pre>
<p>
Are you concerned about time zone support? Don't be. Timeago handles
this too. As long as your timestamps are
in <a href="http://en.wikipedia.org/wiki/ISO_8601">ISO 8601</a> format
and include a
full <a href="http://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators">time
zone designator</a> (±hhmm), everything should work out of the box
regardless of the time zone that your visitors live in.
</p>
<h3>Huh?</h3>
<p class="last">
Need a Rails helper to make those fancy microformat <tt>abbr</tt> tags? Fine, here ya go: