JosephMajaseSithole / datejs

Automatically exported from code.google.com/p/datejs
0 stars 0 forks source link

[FIXED] getTimezone #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Type in Date.today().getTimezone()
2. Returns null instead of "PST"

What is the expected output? What do you see instead?
It should say "PST" for my specific timezone. It always returns null though
with whatever date I give it.

What version of the product are you using? On what operating system?
Alpha-1. Using Firefox 2.0.0.11 on Mac OS X Leopard. Same problem in Safari
3.0.

Original issue reported on code.google.com by jcnet...@gmail.com on 3 Dec 2007 at 5:25

GoogleCodeExporter commented 8 years ago
Attaching firebug screenshot

Original comment by jcnet...@gmail.com on 3 Dec 2007 at 5:27

Attachments:

GoogleCodeExporter commented 8 years ago
Can you run the following code and post what you get as return values?

Date.today().getUTCOffset();
Date.today().isDST();
Date.today().toString();

Original comment by geoff%co...@gtempaccount.com on 3 Dec 2007 at 11:21

GoogleCodeExporter commented 8 years ago
All those commands seem to work.

Original comment by jcnet...@gmail.com on 4 Dec 2007 at 2:36

Attachments:

GoogleCodeExporter commented 8 years ago
This bug with .getTimezone() has been fixed. 

Date.today().getTimezone() should now return "PST" for you.

The new code has been committed to SVN and will be included in the Beta-1 
release.

Thanks for pointing out the bug originally.

Original comment by geoff%co...@gtempaccount.com on 18 Dec 2007 at 11:05

GoogleCodeExporter commented 8 years ago
Commendations for a great library...Datejs makes Date manipulation in 
Javascript far easier.

Is Datejs an active project? Because I just encountered the 'null' problem 
described above...and Alpha-1 remains the current publicly available 
release...I'm wondering if this 'closed' Issue will be made available in a new 
release.

Also, there's a small bug in the online documentation in the Google Code 
repository. In some places in the doc, the 'isDayLightSavingTime' property is 
referred to as 'isDayLightSavingsTime'. 

Last, 'isDST' fails on Google Chrome at date.js:40 (see attached screen shot 
from Google Chrome's Developer Tools.

Please let us know if Datejs is (will be?) an active project...or if we should 
look elsewhere. Regardless, many thanks for the contribution to Javascript 
developers everywhere.

Original comment by Simply...@gmail.com on 17 Jan 2011 at 2:32

Attachments: