Click here to Skip to main content
15,884,176 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
megaadam10-May-21 4:55
professionalmegaadam10-May-21 4:55 
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 
I apologize for jumping into your conversation but I had to deal with time issues for some time and I pretend I know a few things (just my illusion, but humor me Laugh | :laugh: ).

IMO both examples you give show that using UTC is the best solution. In the first one, 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.

In the second example you definitely have to enter the time zone the user wants to apply. If in addition to changing the stuff at home he has also to schedule a meeting you wouldn't want him to show up at the meeting using European time zone. Google Calendar takes this approach where each event has an associated time zone.
Quote:
It's a lot easier for fetching and filtering the data if times are WYSIWYG...
Changing the filter parameters to UTC beforehand is equally easy.
Mircea

GeneralRe: How did I not know this? Pin
Sander Rossel10-May-21 5:36
professionalSander Rossel10-May-21 5:36 
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 

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.