Click here to Skip to main content
15,891,136 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: These awesome docs... Pin
Sander Rossel28-Oct-18 4:50
professionalSander Rossel28-Oct-18 4:50 
GeneralRe: These awesome docs... Pin
PIEBALDconsult28-Oct-18 5:21
mvePIEBALDconsult28-Oct-18 5:21 
GeneralRe: These awesome docs... Pin
Marc Clifton28-Oct-18 5:34
mvaMarc Clifton28-Oct-18 5:34 
GeneralRe: These awesome docs... Pin
David O'Neil28-Oct-18 10:33
professionalDavid O'Neil28-Oct-18 10:33 
GeneralRe: These awesome docs... Pin
Sander Rossel28-Oct-18 10:42
professionalSander Rossel28-Oct-18 10:42 
GeneralRe: These awesome docs... Pin
David O'Neil28-Oct-18 10:59
professionalDavid O'Neil28-Oct-18 10:59 
GeneralRe: These awesome docs... Pin
kalberts29-Oct-18 6:17
kalberts29-Oct-18 6:17 
RantLocal vs UTC Pin
Kornfeld Eliyahu Peter27-Oct-18 22:26
professionalKornfeld Eliyahu Peter27-Oct-18 22:26 
It IS a programming question, but as I do not really want an answer (more interested in flame war Big Grin | :-D and your philosophy) I do post it here...
So... you have to set up in a system some online exams, including date and time of opening an closing... As the system interprets anything stored in the DB (a Unix timestamp) as UTC (good old practice), you send them UTC via the API...
You may be surprised, but it even works... until the move your clock, just we did last night... At that moment the server moves (automatically) and now it adds only 2 hours to the stored UTC, instead of the 3 it added at summer-time...
So in the DB is stored 9:30 UTC, which is 12:30 Local in summer time, but 11:30 in winter...
As we all learned, to store UTC is the best way to resolve timezone changes... except when it is not...
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018

GeneralRe: Local vs UTC Pin
Daniel Pfeffer27-Oct-18 22:39
professionalDaniel Pfeffer27-Oct-18 22:39 
GeneralRe: Local vs UTC Pin
Kornfeld Eliyahu Peter27-Oct-18 22:46
professionalKornfeld Eliyahu Peter27-Oct-18 22:46 
JokeRe: Local vs UTC Pin
Daniel Pfeffer27-Oct-18 22:56
professionalDaniel Pfeffer27-Oct-18 22:56 
GeneralRe: Local vs UTC Pin
Sander Rossel27-Oct-18 23:55
professionalSander Rossel27-Oct-18 23:55 
GeneralRe: Local vs UTC Pin
Kornfeld Eliyahu Peter28-Oct-18 0:02
professionalKornfeld Eliyahu Peter28-Oct-18 0:02 
GeneralRe: Local vs UTC Pin
Sander Rossel28-Oct-18 0:30
professionalSander Rossel28-Oct-18 0:30 
GeneralRe: Local vs UTC Pin
PIEBALDconsult28-Oct-18 5:52
mvePIEBALDconsult28-Oct-18 5:52 
GeneralRe: Local vs UTC Pin
Sander Rossel28-Oct-18 10:46
professionalSander Rossel28-Oct-18 10:46 
GeneralRe: Local vs UTC Pin
PIEBALDconsult28-Oct-18 11:10
mvePIEBALDconsult28-Oct-18 11:10 
GeneralRe: Local vs UTC Pin
Sander Rossel28-Oct-18 11:24
professionalSander Rossel28-Oct-18 11:24 
GeneralRe: Local vs UTC Pin
kalberts28-Oct-18 23:40
kalberts28-Oct-18 23:40 
GeneralRe: Local vs UTC Pin
Sander Rossel29-Oct-18 6:27
professionalSander Rossel29-Oct-18 6:27 
GeneralRe: Local vs UTC Pin
kalberts29-Oct-18 6:49
kalberts29-Oct-18 6:49 
GeneralRe: Local vs UTC Pin
Sander Rossel29-Oct-18 7:10
professionalSander Rossel29-Oct-18 7:10 
GeneralRe: Local vs UTC Pin
Jörgen Andersson28-Oct-18 9:58
professionalJörgen Andersson28-Oct-18 9:58 
GeneralRe: Local vs UTC Pin
PIEBALDconsult28-Oct-18 5:15
mvePIEBALDconsult28-Oct-18 5:15 
GeneralRe: Local vs UTC Pin
Kornfeld Eliyahu Peter28-Oct-18 7:43
professionalKornfeld Eliyahu Peter28-Oct-18 7:43 

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.