In a project which includes ilib, with the browser time zone set to US Eastern Time or somewhere west, at the console, enter:
ilib.getVersion()
"5.0"
var dayOfWeekFmt = new ilib.DateFmt({date: 'w', length: 'full'});
undefined
date = new Date('2014-05-13T03:17:48.674Z')
Date 2014-05-13T03:17:48.674Z
dayOfWeekFmt.format(date)
"Tuesday"
date.toDateString()
"Mon May 12 2014"
Note that, for the given date, it is Tuesday in Greenwich, but still Monday in the US.
This also happens when using templates, for example:
In a project which includes ilib, with the browser time zone set to US Eastern Time or somewhere west, at the console, enter:
Note that, for the given date, it is Tuesday in Greenwich, but still Monday in the US.
This also happens when using templates, for example:
new ilib.DateFmt({template: $L("'This' EEEE")});
Doug Reeder
reeder.29@gmail.com
http://reeder29.livejournal.com/
https://twitter.com/reeder29
https://twitter.com/hominidsoftware
http://hominidsoftware.com
Oh yes, good one! I will make sure that it fixed in build 002 of 6.0.
Hi Doug, build 20140515-build-6.0-002 is out now and your issue should be fixed. Please let me know if it works properly for you.