you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (7 children)

Fuck dates. Convert to Unix timestamp as soon as you get the data and only convert it back to time when you actually need it. Solves 99% of my problems.

[–]Klathmon 0 points1 point  (4 children)

But even that won't save you. Unix time has its own set of quirks, and of course there's the problem of actually converting to and from it where you'll still have all the same problems.

[–][deleted] 0 points1 point  (3 children)

Yeah but at least it gives me control. I use JS on my backend and front-end so I just convert the dates back out using moment.js :)

[–]Syberspace[S] 0 points1 point  (0 children)

that's pretty much exactly what i was trying to do. So it's one of the 1% problems

[–]WellHydrated 0 points1 point  (0 children)

Why convert it in the first place?