Click here to Skip to main content
15,867,686 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Thought of the Day Pin
raddevus10-May-21 5:30
mvaraddevus10-May-21 5:30 
GeneralRe: Thought of the Day Pin
W Balboos, GHB10-May-21 6:05
W Balboos, GHB10-May-21 6:05 
GeneralRe: Thought of the Day Pin
DRHuff10-May-21 9:25
DRHuff10-May-21 9:25 
GeneralHow did I not know this? Pin
Sander Rossel10-May-21 3:30
professionalSander Rossel10-May-21 3:30 
GeneralRe: How did I not know this? PinPopular
SeanChupas10-May-21 3:42
SeanChupas10-May-21 3:42 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 4:35
professionalSander Rossel10-May-21 4:35 
GeneralRe: How did I not know this? Pin
Mircea Neacsu10-May-21 5:02
Mircea Neacsu10-May-21 5:02 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 5:36
professionalSander Rossel10-May-21 5:36 
Mircea Neacsu wrote:
if you store UTC times departure and arrival times would have meaningful values. Travel time would also be correct. If you are to make a report when the traveler was away, all times should be converted to observer's time zone. The observer would be the person requesting the report or the company's HQ or whatever.
Disagree on this one.
The user checks his watch, it says 14:30, and starts driving.
Now, back at home, he wonders at what time they left exactly and is surprised to see 13:30, while he's sure it was around 14:30 (so don't adjust to user's current time).
Also, he get's a call from HQ in America who ask him why he left at 06:00 in the morning (again, they probably want to know local time (too), if not to be able to communicate).
UTC means nothing to users, they barely even know it exists.
Mircea Neacsu wrote:
In the second example you definitely have to enter the time zone the user wants to apply.
Possibly... If a user changes something today at 13:00 and after that someone else sends an email they saw a bug at 12:00, you want to know the user changed it after the bug was observed to rule out any association.
In this case storing UTC and time zone information can greatly help.
You'd want HQ in America to know it was at 06:00 their time, but have the local users see 13:00.
However, if the user who made the change flies over to America, they'd probably still want to see 13:00 as that's the time they can relate to in their head, 06:00 wouldn't make sense as they were still asleep at that time.
Mircea Neacsu wrote:
Changing the filter parameters to UTC beforehand is equally easy.
But wrong if the default filter is "today" and the user opens the page at 00:30 (Dutch time).

Storing UTC and time zone information never hurts, so I agree it's best practice, but whether you actually do something with it depends on each and every individual situation, unfortunately Frown | :(
In my case, everyone is in the Netherlands, so I could probably get away with always storing Dutch time.
In any case, time zones are an absolute PITA Sigh | :sigh:

GeneralRe: How did I not know this? Pin
Mircea Neacsu10-May-21 6:15
Mircea Neacsu10-May-21 6:15 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 22:09
professionalSander Rossel10-May-21 22:09 
GeneralRe: How did I not know this? Pin
SeanChupas10-May-21 7:05
SeanChupas10-May-21 7:05 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 22:10
professionalSander Rossel10-May-21 22:10 
GeneralRe: How did I not know this? Pin
Jörgen Andersson10-May-21 7:53
professionalJörgen Andersson10-May-21 7:53 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 22:15
professionalSander Rossel10-May-21 22:15 
GeneralRe: How did I not know this? Pin
Jörgen Andersson10-May-21 23:23
professionalJörgen Andersson10-May-21 23:23 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 23:43
professionalSander Rossel10-May-21 23:43 
GeneralRe: How did I not know this? Pin
Jörgen Andersson10-May-21 23:46
professionalJörgen Andersson10-May-21 23:46 
GeneralRe: How did I not know this? Pin
Sander Rossel11-May-21 0:28
professionalSander Rossel11-May-21 0:28 
GeneralRe: How did I not know this? Pin
StarNamer@work11-May-21 3:39
professionalStarNamer@work11-May-21 3:39 
GeneralRe: How did I not know this? Pin
Sander Rossel11-May-21 11:04
professionalSander Rossel11-May-21 11:04 
GeneralRe: How did I not know this? Pin
Fabio Franco12-May-21 0:35
professionalFabio Franco12-May-21 0:35 
GeneralRe: How did I not know this? Pin
Dan Neely10-May-21 9:41
Dan Neely10-May-21 9:41 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 22:21
professionalSander Rossel10-May-21 22:21 
GeneralRe: How did I not know this? Pin
JamesRuzinok11-May-21 3:33
JamesRuzinok11-May-21 3:33 
GeneralRe: How did I not know this? Pin
DRHuff10-May-21 9:38
DRHuff10-May-21 9:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.