5 use Test::More tests => 3;
9 t::lib::Mocks::mock_config( 'timezone', q{} );
10 is( C4::Context->timezone, 'local',
11 'Got local timezone with no env or config timezone set' );
13 $ENV{TZ} = 'Antarctica/Macquarie';
15 C4::Context->timezone,
16 'Antarctica/Macquarie',
17 'Got correct timezone using ENV, overrides local time'
20 t::lib::Mocks::mock_config( 'timezone', 'Antarctica/South_Pole' );
22 C4::Context->timezone,
23 'Antarctica/South_Pole',
24 'Got correct timezone using config, overrides env'