Thursday, May 7, 2020

dates in JS can be ugly, capital UGH

Just shanked a techie code test in part because


It was for a "can you work with maps and arrays and stuff" exercise - which I can, but I either fumbled syntax or got mildly addled at parts and combined with some failure with the above (I had to do some basic date math) made it a hella confusing nightmare I couldn't quite come back from.

I think for some reason the second Date is like, setting in GMT and then giving me the Eastern Daylight Time equivalent of midnight in England.

Now I see why some languages insist you specify the time zone always :-D

No comments:

Post a Comment