luau-lang / luau

A fast, small, safe, gradually typed embeddable scripting language derived from Lua
https://luau.org
MIT License
3.98k stars 373 forks source link

os.date("%Z") returns "Easter" for EDT #1217

Closed kalrnlo closed 6 months ago

kalrnlo commented 6 months ago

I would expect it to return "Eastern Daylight Time" rather than "Easter", haven't tested with other any other timezones.

vegorov-rbx commented 6 months ago

%Z returns the result from your C standard library (which often comes from the operating system). So if "Easter" is returned, it's the correct value for your environment. On Windows 11 compiled with MSVS, the result is "Eastern Daylight Time" today in Eastern Time (US & Canada) time zone.

If this is an elaborate joke PR, Happy Easter to you too.