Andrew Paprocki (2013-09-06T19:27:50.000Z)
domenic at domenicdenicola.com (2013-09-17T19:55:15.523Z)
Most places in the world transition to/from DST at either 1 or 2am, which avoids a class of bug that affects only users in the world that transition at midnight. For example, Chilean users transition this upcoming Sunday at midnight, which results in: ``` > var d = new Date(2013, 8, 8) // September 8th Sat Sep 07 2013 23:00:00 GMT-0400 (CLST) > d.getDate() 7 ``` Devs probably expect (right or wrong) that when omitting the time portion of the constructor and sticking to the date-only local API, the returned values reflect the values passed to the constructor. This affects users located in these places whose timezones transition to/from DST at midnight: - Brazil - Chile - Paraguay - Iran - Lebanon - Syria - West Bank / Gaza - Cuba - Greenland I'm not sure how often this class of bug bites users or devs in the parts of the world where this occurs, but has anyone else ever run across this? This boils down to "ES only has datetime and not date, time, datetime types".