Skip to content

Commit ffa11a7

Browse files
committedOct 19, 2011
Fix Mech and timezone issues.
1 parent 5a11540 commit ffa11a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎t/Asset/Wobject/EventManagementSystem.t

+3-3
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ my @unticks = qw( assetId vendorId seatsAvailable price eventNumber location rel
763763
for my $val ( @unticks ) {
764764
$mech->untick( 'fieldsToImport', $val );
765765
}
766-
$mech->click_ok( "submit", "import files" );
766+
$mech->click_ok( "send", "import files" );
767767

768768
# Events exist
769769
my $events = $ems->getLineage( ['children'], {
@@ -777,15 +777,15 @@ cmp_deeply(
777777
{
778778
title => "One",
779779
description => "Oneness",
780-
startDate => WebGUI::DateTime->new( $session, mysql => '2010-01-01 00:00:00', time_zone => DateTime::TimeZone::Local->TimeZone() )->toMysql,
780+
startDate => WebGUI::DateTime->new( $session, mysql => '2010-01-01 00:00:00', time_zone => $session->user->get('timeZone'), )->toMysql,
781781
duration => 2,
782782
}
783783
),
784784
superhashof(
785785
{
786786
title => 'Two',
787787
description => 'Twoness',
788-
startDate => WebGUI::DateTime->new( $session, mysql => '2010-02-02 00:00:00', time_zone => DateTime::TimeZone::Local->TimeZone() )->toMysql,
788+
startDate => WebGUI::DateTime->new( $session, mysql => '2010-02-02 00:00:00', time_zone => $session->user->get('timeZone') )->toMysql,
789789
duration => 3,
790790
}
791791
),

0 commit comments

Comments
 (0)
Please sign in to comment.