<commit_before>use strict;
use warnings;

use utf8;
use Test::NoWarnings;
use Test::More tests => 13;

use DateTime;

BEGIN
{
    use FindBin;
    use lib "$FindBin::Bin/../lib";

    use_ok( 'MediaWords::Util::DateTime' );
}

sub test_local_timezone()
{
    my $local_tz = MediaWords::Util::DateTime::local_timezone();
    isa_ok( $local_tz, 'DateTime::TimeZone' );
    ok( !$local_tz->is_utc );
}

sub test_gmt_datetime_from_timestamp()
{<commit_msg>Allow local timezone to be UTC<commit_after>use strict;
use warnings;

use utf8;
use Test::NoWarnings;
use Test::More tests => 12;

use DateTime;

BEGIN
{
    use FindBin;
    use lib "$FindBin::Bin/../lib";

    use_ok( 'MediaWords::Util::DateTime' );
}

sub test_local_timezone()
{
    my $local_tz = MediaWords::Util::DateTime::local_timezone();
    isa_ok( $local_tz, 'DateTime::TimeZone' );
}

sub test_gmt_datetime_from_timestamp()
{
{'fraction_non_alphanumeric': 0.15151515151515152, 'fraction_numerical': 0.006734006734006734, 'mean_word_length': 4.792207792207792, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4418242', 'n_tokens_mistral': 338, 'n_tokens_neox': 325, 'n_words': 71}