Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another dateOnly option implementation, plus a minor ISO8601 parsing improvement #48

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

cameron314
Copy link

Not sure if you want to pull this into the master or not, but I thought I should let you decide. Thanks for the original, it rocks!

cameron314 and others added 9 commits December 29, 2011 01:36
Having timeago display datediff and timediff was required on page. 
To provide this ability, the format of display is determined by the initial value.

The option to show dateOnly can also be controlled through timeago.settings
Auto determine the need of Date + DateTime display.
Made parsing account for timezone offsets that have no minute component (which is valid under ISO8601)
data-tz-change="utc2local" attribute on element will covert the specified time to Localtime.
This is a stop-gap implementation, it can be further improved.
Enabled timeago computation reference UTC value (instead of Local timezone),
Control using the attribute "data-tz-utc" on DOM element.

XDate (https://github.com/arshaw/xdate) library is required at runtime.
Updated enhancement of UTC-to-Localtime support in README.markdown
[Pull request] Enhancement: Compute difference in UTC mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants