### ----------------------------------------------------
### -- User::Timezone
### -- Licenses: Artistic-2.0
### -- Authors: Matthew ‘Matéu’ Stephen STUCKWISCH <mateu@softastur.com>
### -- File: t/01-override.t
### ----------------------------------------------------
use Test;

use User::Timezone :override;

# Test the override by putting in a fake timezone
# since UserTimezone does not check for validity since
# the database isn't guaranteed stable.
my $original-tz = user-timezone;

override-user-timezone("This is not a real timezone");

is user-timezone(), "This is not a real timezone";
clear-user-timezone-override;
is user-timezone(), $original-tz;

done-testing;


