Skip to content

Commit

Permalink
Update legacy timezones
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sunnavy committed Aug 29, 2023
1 parent 015676c commit f2fb3e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/RT_Config.pm.in
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ your server.

=cut

Set($Timezone, "US/Eastern");
Set($Timezone, "America/New_York");

=item C<@Plugins>

Expand Down
2 changes: 1 addition & 1 deletion t/api/date.t
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit f2fb3e7

Please sign in to comment.