As a mainly java developer: how on earth could a date parser not take a format specification? Does it, like, guess what the format is?
Top-level
As a mainly java developer: how on earth could a date parser not take a format specification? Does it, like, guess what the format is? 2 comments
|
@grishka It does in fact guess the format if it's not ISO 8601. And since it's guessing, it assumes local time zone. No, there is no way to pass in a UTC offset and say "give me this one".
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse#differences_in_assumed_time_zone