summaryrefslogtreecommitdiff
path: root/internal/time.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-02-17 21:46:47 +0900
committerNobuyoshi Nakada <[email protected]>2025-02-19 18:27:32 +0900
commit3f07bc76ff6a11232d9f18e5eaa31835c195e8f0 (patch)
treef94ee52c712179414e6295338af79f57b30e20c5 /internal/time.h
parentbd84c75a013042f4feefa4616ab119394b3bbf24 (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
Notes: Merged: https://github.com/ruby/ruby/pull/12765
Diffstat (limited to 'internal/time.h')
-rw-r--r--internal/time.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/time.h b/internal/time.h
index a3bf0587ec..e21b3574f6 100644
--- a/internal/time.h
+++ b/internal/time.h
@@ -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);
+#ifdef RBIMPL_ATTR_DEPRECATED_INTERNAL_ONLY
+RBIMPL_ATTR_DEPRECATED_INTERNAL_ONLY()
+#endif
+void ruby_reset_timezone(const char *);
RUBY_SYMBOL_EXPORT_END
#endif /* INTERNAL_TIME_H */