Inject node - Use local time not UTC

Ok, sorry. I am not sure that replying to a ten month old post is worth doing.

Actually, 10's of millions of people live in UTC for at least 1/2 the year :grinning:

The point is that once you get into local time, you are at the whims of historic and inconsistent time handling that changes depending on your position on the Earth, the time of day and day of year. Any reasonably complex time/date handling is eventually likely to hit at least one issue. By using UTC as the base and only using local time for user input and output, you avoid all of those pitfalls.

It mostly is bad practice - for the server - not necessarily always. As always, it is up to the author to work out what is best. I can only pass on my 40+ years of experience of dealing with date/time calculations for enterprise systems.

1 Like