Timezone In Date .toTimeString() Is Not Always An Abbreviation In JavaScript

added by JavaScript Kicks
7/10/2018 1:30:25 PM

423 Views

Ben Nadel demonstrates that the timezone portion of the Date .toTimeString() method in JavaScript is not always represented as an abbreviation. Therefore, if you're parsing the time string to extract the timezone, you may have to use a more flexible Regular Expression pattern and do some post-parsing normalization.


0 comments