Skip to content

Tag: dst

Javascript SetMonth Issue

I am doing unit tests. On my local node process I get this error On docker node process it works. I believe it is related to the DST, but I don’t understand how… Answer You’re right that DST is coming into play, because you’re using the local time setMonth/getMonth methods, so DST comes into it (adding the month, the Date