shal19 / datejs

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

isDayLightSavingsTime() doesn't exist #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

The documentation for getTimezoneAbbreviation() shows
Date.today().isDayLightSavingsTime() in the example, but this method is
nowhere to be found in the source.  

Link to documentation which shows this:
http://code.google.com/p/datejs/wiki/APIDocumentation#getTimezoneAbbreviation

This would be a tremendously useful function to have!  I'll see if I can
implement it like to implement this and contribute it back (although this
looks project is dead, so I'm not sure how well the latter will go).

Original issue reported on code.google.com by Mr.Adam....@gmail.com on 30 Mar 2010 at 6:36

GoogleCodeExporter commented 8 years ago
Doh!  I just found out about isDST().  It's a poor-mans implementation, but 
it'll
work for my needs.  I couldn't find any way to update the wiki, which is 
strange, but
the documentation should be updated.  Also console.log should be in a try/catch 
as
it's an undefined variable in some browsers which throws an exception.

Original comment by Mr.Adam....@gmail.com on 30 Mar 2010 at 6:45

GoogleCodeExporter commented 8 years ago
Look for isDaylightSavingTime() . 
Notice the lack case difference and the lack of an s after "Saving"

This looks like a mistake in the documentation of functions like 
getTimezoneAbbreviation

Original comment by jeffv...@gmail.com on 14 Jun 2012 at 5:59

GoogleCodeExporter commented 8 years ago
I've tried isDST(), isDayLightSavingsTime() and isDaylightSavingTime() and none 
of them work. For the isDST(), I get a string match error and for the others I 
get 'not a function'.

Original comment by louiseze...@gmail.com on 26 Jul 2012 at 2:04

GoogleCodeExporter commented 8 years ago
You need to be sure about the version of the library, because it seems the 
download version in this project is not the last one. 

Latest version seems to be this one (that has the commented method with "light" 
in lowercase.
http://www.datejs.com/build/date.js

¡¡This version has about 40 lines more of code!!

Original comment by marcos.q...@gmail.com on 4 Apr 2013 at 12:42

GoogleCodeExporter commented 8 years ago
fixed in all version on my fork: http://github.com/abritinthebay/datejs

Original comment by darkcr...@gmail.com on 15 Sep 2013 at 7:18