Open tfrojd opened 6 years ago
Hi... apologies for taking ages here... So it seems that all of the formats you're passing here except the last one are falling back to native browser parsing, which does NOT ignore timezone abbreviations. In a sense that makes what I've said in the docs completely true and a complete lie at the same time.
The fallback is at the heart of the issue here and in addition to problems like this is environment dependent, which is why it will be removed in the next major version (#638). At that point Sugar will correctly parse timezones but throw them away and treat the dates as a local time. I'll leave this ticket open, however, as a reminder to handle the abbreviated formats as well, which I still need to do.
Also a reminder to self here that the parsed timezones should be passed into the populated params object so that they can be handed off to a library that does deal with them.
According to npm page Sugar should ignore timezone abbreviations. However that seems to not work for me.
Output from console is
Running node v9.3.0 and sugar 2.0.4