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

preview_player
Показать описание
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:

Want to support my Diet Dr Pepper addiction?

Follow:

You can find me here as well:

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
Рекомендации по теме
Комментарии
Автор

Wonderful tutorial! Straight to the point, no BS, showing what, how, why, and how to find it in the spec! 👏👏👏🏆

gkarapeev
Автор

I've been struggling for 2 days with this issue, thanks for explaining it so clearly!

HyprX
Автор

I been learning to code and this had me pulling my hair out for ages, nobody said jack about how your local machines time affects the date input... everyone kept blabbing on about unix being utc which i'd obviously enter and not get the expected result. So many useless stackoverflow posts and finally a video that clearly just explains it.... my fault for not reading the docs in this case tbh. Thanks for the vid.

jonathan.watson
Автор

you're my new favorite youtube coder, please continue making videos

gravelessForever
Автор

Thank you so much I was stuck on this at work all day… gonna try this later tonight

shadowthehedgehog
Автор

This is exactly what I was looking for...
Thank you so much.

MubarikHussain
Автор

Thank you, your video was really helpful and finally I fixed this bug with offsets in my app.

oskarkowalow
Автор

awesome, thanks to you I have defeated the demon haunting me for so many years. you have got a new subscriber.

xtremewolve
Автор

Thank you :) I am not a developer but this helped me solve a bug for my Team.

apexful
Автор

the background music should have been a clown jingle... this is ridiculous. Thanks for explaining it so clearly

hago
Автор

Thank you very much. It helped me in resolving a real-time scenario

RajaRam-qrwe
Автор

thank you very much sir, i solved my problem with date

thaof
Автор

Thank you so much,
I appreciate your effort to do such a video. It helps me to fix a large bug

noufalbhai
Автор

Thank you! Very well explained, this video helped me resolve this same issue in my app!

sierra
Автор

have a production error in my app where dates are off by one day. thx for making this!

BenCooper-enxe
Автор

Thanks for uploading this video. Very helpful. Keep uploading plz.

consciousmi
Автор

This is very useful information. Thanks for that!

printprints
Автор

Great! Thank you so much. This is very helpful.

giopineda
Автор

very well explained, it will help me a lot, thanks!

VelizFrancia
Автор

Raymond Reddington explaining time zones

leifholler