diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-02-17 21:46:47 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-02-19 18:27:32 +0900 |
commit | 3f07bc76ff6a11232d9f18e5eaa31835c195e8f0 () | |
tree | f94ee52c712179414e6295338af79f57b30e20c5 /internal/time.h | |
parent | bd84c75a013042f4feefa4616ab119394b3bbf24 (diff) |
[Bug #21144] Win32: Use Windows time zone ID if TZ is not set
If the TZ environment variable is not set, the time zone names retrieved from the system are localized for UI display and may vary across editions and language packs for the same time zone. Use the time zone IDs that are invariant across environments instead.
Notes: Merged: https://.com/ruby/ruby/pull/12765
-rw-r--r-- | internal/time.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -28,7 +28,10 @@ struct timeval rb_time_timeval(VALUE); RUBY_SYMBOL_EXPORT_BEGIN /* time.c (export) */ void ruby_reset_leap_second_info(void); -void ruby_reset_timezone(void); RUBY_SYMBOL_EXPORT_END #endif /* INTERNAL_TIME_H */ |