NElliott
07/16/2020, 1:29 PMMTNathan
07/16/2020, 1:37 PMsetValue
for that exact reason.NElliott
07/16/2020, 2:44 PMMTNathan
07/16/2020, 2:56 PMnew Date()
calls in some instances, like so:
var serverTime = new Date();
var localTime = new Date(serverTime .getTime() + (120 * 60000));
NElliott
07/16/2020, 3:10 PMbattk
07/16/2020, 3:14 PMbattk
07/16/2020, 3:14 PMbattk
07/16/2020, 3:15 PMNElliott
07/16/2020, 3:17 PMMTNathan
07/16/2020, 3:18 PMNElliott
07/16/2020, 3:20 PMbattk
07/16/2020, 3:20 PMbattk
07/16/2020, 3:20 PMNElliott
07/16/2020, 3:22 PMbattk
07/16/2020, 3:23 PMMTNathan
07/16/2020, 3:23 PMgetTimezoneOffset()
and calculating from your local offset might be the best option, but even that assumes that DST changes on the same dates for both locations.NElliott
07/16/2020, 3:42 PMvar today = new Date();
log.audit({title: 'today', details: today});
But if you log out today.getHours() etc it's completely different hoursbattk
07/16/2020, 3:43 PMbattk
07/16/2020, 3:43 PMNElliott
07/16/2020, 3:43 PMbattk
07/16/2020, 3:44 PMvar today = new Date();
log.audit({title: 'today', details: today.toString()});
NElliott
07/16/2020, 3:44 PMNElliott
07/16/2020, 3:46 PMNElliott
07/16/2020, 3:46 PMNElliott
07/16/2020, 3:46 PM