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

Default last modified date uses GMT rather than Locale time #107

Closed
cookiecrook opened this issue Dec 3, 2012 · 1 comment
Closed

Default last modified date uses GMT rather than Locale time #107

cookiecrook opened this issue Dec 3, 2012 · 1 comment
Milestone

Comments

@cookiecrook
Copy link

Minor issue: I would have expected the Status/Date H2 to use toLocaleDateString instead of toDateString. This means the default document.lastModified date is displayed incorrectly at least once per per (+- one day) unless you're in the GMT timezone.

@darobin
Copy link
Member

darobin commented Sep 27, 2013

Actually, I don't use toDateString but a handrolled stringifier instead. Using the locale would not be correct anyway since it would match the local user's date rather than the date of the server. Using locale date would also produce results that are potentially different from the hardcoded dates when they are specified.

In general, document.lastModified is unreliable anyway, so we can't really do much better that I can tell.

@darobin darobin closed this as completed Sep 27, 2013
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this issue Feb 19, 2018
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this issue Feb 19, 2018
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this issue Feb 19, 2018
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

No branches or pull requests

2 participants