robertkrimen / otto

A JavaScript interpreter in Go (golang)
http://godoc.org/github.com/robertkrimen/otto
MIT License
8.01k stars 584 forks source link

dates and timezone #498

Open elfranne opened 1 year ago

elfranne commented 1 year ago

toLocaleString does not support the Intl format, to allow specifying timezone.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat

Asday commented 1 year ago

https://262.ecma-international.org/5.1/#sec-15.9.1.15

It looks like timezones should be supported in the format +03:00, which isn't quite the usual +0300 - can you provide an SSCCE demonstrating your issue?