r/Heroku • u/StartingOver095 • Feb 03 '19
Milliseconds for a specific date changes based on Timezone. Are these note static values based on distance of time from 1/1/2019 at 00:00 ?
spez: title correction Are these not static value
Target Outcome: I am working a function to display how many days until a task. If the time is within 24 hours of a hard due date without going past it the application should display "today"
Issue / Details: I have a set due date for Feb 4th at 00:00 ( in milliseconds) I assumed this was a static value that isn't affected by timezone. From the standpoint that February fourth is 'x' amount of ms away from 1/1/2019 00:00. Changing the timezone on the server changes the millisecond output for what would be that date.
I feel as though I am misunderstanding a core concept or something regarding how the millisecond time for a date is calculated.
-2
u/StartingOver095 Feb 03 '19
Never mind i figured out realized calculated time in millisecs on a computer starts at the epoch time of 00:00 jan 1 1970