WebAssembly / wasi-clocks

Clocks API for WASI
30 stars 12 forks source link

Implementing `in-daylight-saving-time` flag #68

Open guybedford opened 2 weeks ago

guybedford commented 2 weeks ago

Exploring what would be required for the JS implementation, I'm not sure if it is easily possibly to implement this flag on top of JavaScript's date implementation as this data isn't currently available, and some consistency questions may come up with regards to its implementation.

I am by no means an expert on this topic though, but this was originally mentioned by @ptomato.

yoshuawuyts commented 2 weeks ago

Yeah, also given the feedback provided in https://github.com/WebAssembly/wasi-clocks/pull/61#issuecomment-2174491391, we may want to consider dropping that flag entirely.

Talked with @sunfishcode a little about this yesterday: basic timezone support was intended to follow what POSIX provides. But that's clearly showing its age. We should want to update it to more recent standards where possible, especially because we care about targeting platforms like the web.

yoshuawuyts commented 2 weeks ago

I've filed https://github.com/WebAssembly/wasi-clocks/issues/69 to more broadly discuss changes to the timezones API. It seems daylight savings might be challenging for different reasons too. Let's merge this into the conversation there?