Click here to Skip to main content
15,114,888 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 6:30
mvaraddevus10-May-21 6:30 
GeneralRe: Thought of the Day Pin
W Balboos, GHB10-May-21 7:05
mveW Balboos, GHB10-May-21 7:05 
GeneralRe: Thought of the Day Pin
DRHuff10-May-21 10:25
MemberDRHuff10-May-21 10:25 
GeneralHow did I not know this? Pin
Sander Rossel10-May-21 4:30
professionalSander Rossel10-May-21 4:30 
GeneralRe: How did I not know this? PinPopular
SeanChupas10-May-21 4:42
MemberSeanChupas10-May-21 4:42 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 5:35
professionalSander Rossel10-May-21 5:35 
GeneralRe: How did I not know this? Pin
Mircea Neacsu10-May-21 6:02
mvaMircea Neacsu10-May-21 6:02 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 6:36
professionalSander Rossel10-May-21 6: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 7:15
mvaMircea Neacsu10-May-21 7:15 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 23:09
professionalSander Rossel10-May-21 23:09 
GeneralRe: How did I not know this? Pin
SeanChupas10-May-21 8:05
MemberSeanChupas10-May-21 8:05 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 23:10
professionalSander Rossel10-May-21 23:10 
GeneralRe: How did I not know this? Pin
Jörgen Andersson10-May-21 8:53
professionalJörgen Andersson10-May-21 8:53 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 23:15
professionalSander Rossel10-May-21 23:15 
GeneralRe: How did I not know this? Pin
Jörgen Andersson11-May-21 0:23
professionalJörgen Andersson11-May-21 0:23 
GeneralRe: How did I not know this? Pin
Sander Rossel11-May-21 0:43
professionalSander Rossel11-May-21 0:43 
GeneralRe: How did I not know this? Pin
Jörgen Andersson11-May-21 0:46
professionalJörgen Andersson11-May-21 0:46 
GeneralRe: How did I not know this? Pin
Sander Rossel11-May-21 1:28
professionalSander Rossel11-May-21 1:28 
GeneralRe: How did I not know this? Pin
StarNamer_11-May-21 4:39
professionalStarNamer_11-May-21 4:39 
GeneralRe: How did I not know this? Pin
Sander Rossel11-May-21 12:04
professionalSander Rossel11-May-21 12:04 
GeneralRe: How did I not know this? Pin
Fabio Franco12-May-21 1:35
professionalFabio Franco12-May-21 1:35 
GeneralRe: How did I not know this? Pin
Dan Neely10-May-21 10:41
MemberDan Neely10-May-21 10:41 
GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 23:21
professionalSander Rossel10-May-21 23:21 
GeneralRe: How did I not know this? Pin
JamesRuzinok11-May-21 4:33
MemberJamesRuzinok11-May-21 4:33 
GeneralRe: How did I not know this? Pin
DRHuff10-May-21 10:38
MemberDRHuff10-May-21 10: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.