mirror of
https://github.com/scratchfoundation/jquery-timeago.git
synced 2024-11-27 09:45:38 -05:00
Added docs about built-in time zone support
assuming proper ISO 8601 timestamps
This commit is contained in:
parent
7866aec323
commit
d09fbe5247
1 changed files with 10 additions and 0 deletions
10
index.html
10
index.html
|
@ -159,6 +159,16 @@ jQuery(document).ready(function() {
|
||||||
jQuery("time.timeago").timeago();
|
jQuery("time.timeago").timeago();
|
||||||
});</pre>
|
});</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>
|
<h3>Huh?</h3>
|
||||||
<p class="last">
|
<p class="last">
|
||||||
Need a Rails helper to make those fancy microformat <tt>abbr</tt> tags? Fine, here ya go:
|
Need a Rails helper to make those fancy microformat <tt>abbr</tt> tags? Fine, here ya go:
|
||||||
|
|
Loading…
Reference in a new issue