Turns out it is a known issue 
https://bugs.chromium.org/p/chromium/issues/detail?id=811403

On Wednesday, June 27, 2018 at 5:55:21 PM UTC-7, zcw wrote:
>
> Hello, 
>
> We found a strange behavior with timezone. I tested the following with the 
> v8_shell.
> running:
> var d =new Date()
> d.getTimezoneOffset()
>
> It will give me 420 which is correct for PDT. but if I set the TZ variable 
> by doing:
> export TZ=:/etc/localtime
> and running the above script again, it gives me 480.
>
> When I do zdump /etc/localtime, it shows the timezone is PDT. So it 
> doesn't seem the /etc/localtime has error.
>
> I don't know why setting the TZ variable changed the correct timezone. 
> Our program needs the TZ variable, is there any way to fix this behavior?
>
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to