JavaScript Date Object and Time Zones | Fixing an "off by 1 day" bug



JavaScript Date Object and Time Zones | Fixing an "off by 1 day" bug

JavaScript Date Object and Time Zones | Fixing an "off by 1 day" bug

How to handle UTC and local time zone when turning a date string into a JavaScript Date object. And fixing a bug where date is off by one day.

Reference Links:
https://github.com/hawkinsml/javaScriptDates
https://www.ecma-international.org/ecma-262/9.0/index.html#sec-time-values-and-time-range
https://www.ecma-international.org/ecma-262/9.0/index.html#sec-date-value
https://www.ecma-international.org/ecma-262/9.0/index.html#sec-date-time-string-format
http://momentjs.com

This is my second YouTube Channel where I focus on software development. My other channel ‘Maker At Play’ is where I share my maker projects related to woodworking and electronics. https://youtube.com/c/makeratplay

Want to support my Diet Dr Pepper addiction?
https://patreon.com/makeratplay
https://buymeacoffee.com/makeratplay

Follow:
https://www.instagram.com/makeratplay/
https://www.facebook.com/makeratplay
https://twitter.com/MakerAtPlay1

You can find me here as well:
http://makeratplay.com/
https://reddit.com/u/hawkinsmlh
https://about.me/michaelhawkins/

Tools used to make my videos:
Video Editor Software: Davinci Resolve
Camera Samsung Galaxy S8 Phone & Canon EOS M50
Mic: Rode Videomic Shotgun microphone with Rycote Lyre Suspension

Comments are closed.