captbaritone / captbaritone/datejs

Parsed string to date rendered inconsistently by toString() in some browsers

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
I'm parsing dates from "yyyy-MM-ddTHH:mm:ss-05:00" format and then
toString()'ing them.

I'm being told that some folks were seeing strange dates as a result, so I
fired up Parallels and
MSIE6 and sure enough, they we weird. Hours off.

I checked the system time and *it* was way off. Set it. Quit and re-opened MSIE
and all was well.

So I can envision a way to say "hey, buddy, your clock's off, so these dates
might be too," but
what's bugging me is why is it that a specific date being read in and then
printed out is affected
by the system's time settings?

Is there a way to override this? Maybe some kind of Date.setBaseTime() or
Date.setTimeZone()?

You may or may not be able to see this in action here...
http://www.redeemerbaptist.org/

...using a WordPress plug-in I'm attempting to make here...
http://code.google.com/p/wp-gcal-rss/

Whining aside, thanks for a great tool!

```

Original issue reported on code.google.com by `redeemer...@gmail.com` on 4 Jun 2008 at 1:20

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.