Skip to content

Commit c58f24e

Browse files
author
Eugen Konkov
committed
For DateTime without timezone there should not be any specific name
1 parent bb979a8 commit c58f24e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/inflate/datetime_pg.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ warnings_are {
3030
# test 'timestamp without time zone'
3131
my $dt = DateTime->from_epoch(epoch => time);
3232
$dt->set_nanosecond(int 500_000_000);
33+
$dt->set_time_zone( "Europe/Zaporozhye" );
3334
$event->update({ts_without_tz => $dt});
3435
$event->discard_changes;
3536
isa_ok($event->ts_without_tz, "DateTime") or diag $event->created_on;
37+
is($event->ts_without_tz->time_zone->name, "floating", "No specific timezone");
3638
is($event->ts_without_tz, $dt, 'timestamp without time zone inflation');
3739
is($event->ts_without_tz->microsecond, $dt->microsecond,
3840
'timestamp without time zone microseconds survived');

0 commit comments

Comments
 (0)