From f2fb3e722dee9ccce830d8d0497a8dee1abee418 Mon Sep 17 00:00:00 2001 From: sunnavy Date: Tue, 29 Aug 2023 14:19:47 -0400 Subject: [PATCH] Update legacy timezones Standard timezones generally follow the rule of using the geographical region (continent or ocean) and city name. The initial reason of this commit is Debian recently moved all old timezones(like US/Eastern) to another package(tzdata-legacy), and it's good to not introduce an additional, unnecessary dependency. Fixes: I#37666 --- etc/RT_Config.pm.in | 2 +- t/api/date.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in index fb6b584895c..6b945a72ba5 100644 --- a/etc/RT_Config.pm.in +++ b/etc/RT_Config.pm.in @@ -145,7 +145,7 @@ your server. =cut -Set($Timezone, "US/Eastern"); +Set($Timezone, "America/New_York"); =item C<@Plugins> diff --git a/t/api/date.t b/t/api/date.t index 7f7ecd70160..0739d94c302 100644 --- a/t/api/date.t +++ b/t/api/date.t @@ -415,7 +415,7 @@ my $year = (localtime(time))[5] + 1900; $date->Set(Format => 'unknown', Value => 'tomorrow 10am'); is($date->ISO, '2012-06-15 06:00:00', "YYYY-DD-MM hh:mm:ss"); - $current_user->UserObj->__Set( Field => 'Timezone', Value => 'US/Hawaii'); + $current_user->UserObj->__Set( Field => 'Timezone', Value => 'Pacific/Honolulu'); set_fixed_time("2012-06-14T20:10:00Z"); # 14th in UTC and Hawaii $date = RT::Date->new( $current_user );