Why is this giving me 12 instead of 13 today ? var...
# suitescript
t
Why is this giving me 12 instead of 13 today ? var date = moment().format("YYYY-MM-DD"); nlapiLogExecution("debug","date",date);
m
Server script would use server timezone
t
Don't logs use the same ?
@michoel
b
Date will be in server timezone, which will be Pacific timezone
t
If both(Date in logs and moment Date) are using server timezone, then why it is different ? @battk
b
Execution logs will show the date and time columns in the timezone from user preferences
t
ohh, okay