Join Slack
Powered by
Why is this giving me 12 instead of 13 today ? var...
# suitescript
t
tuli
10/13/2020, 7:00 AM
Why is this giving me 12 instead of 13 today ? var date = moment().format("YYYY-MM-DD"); nlapiLogExecution("debug","date",date);
m
michoel
10/13/2020, 7:13 AM
Server script would use server timezone
t
tuli
10/13/2020, 7:14 AM
Don't logs use the same ?
tuli
10/13/2020, 7:15 AM
@michoel
b
battk
10/13/2020, 8:51 AM
Date will be in server timezone, which will be Pacific timezone
t
tuli
10/13/2020, 8:54 AM
If both(Date in logs and moment Date) are using server timezone, then why it is different ?
@battk
b
battk
10/13/2020, 8:54 AM
Execution logs will show the date and time columns in the timezone from user preferences
t
tuli
10/13/2020, 8:54 AM
ohh, okay
Open in Slack
Previous
Next