Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Mech and timezone issues.
  • Loading branch information
perlDreamer committed Oct 19, 2011
1 parent 5a11540 commit ffa11a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/Asset/Wobject/EventManagementSystem.t
Expand Up @@ -763,7 +763,7 @@ my @unticks = qw( assetId vendorId seatsAvailable price eventNumber location rel
for my $val ( @unticks ) {
$mech->untick( 'fieldsToImport', $val );
}
$mech->click_ok( "submit", "import files" );
$mech->click_ok( "send", "import files" );

# Events exist
my $events = $ems->getLineage( ['children'], {
Expand All @@ -777,15 +777,15 @@ cmp_deeply(
{
title => "One",
description => "Oneness",
startDate => WebGUI::DateTime->new( $session, mysql => '2010-01-01 00:00:00', time_zone => DateTime::TimeZone::Local->TimeZone() )->toMysql,
startDate => WebGUI::DateTime->new( $session, mysql => '2010-01-01 00:00:00', time_zone => $session->user->get('timeZone'), )->toMysql,
duration => 2,
}
),
superhashof(
{
title => 'Two',
description => 'Twoness',
startDate => WebGUI::DateTime->new( $session, mysql => '2010-02-02 00:00:00', time_zone => DateTime::TimeZone::Local->TimeZone() )->toMysql,
startDate => WebGUI::DateTime->new( $session, mysql => '2010-02-02 00:00:00', time_zone => $session->user->get('timeZone') )->toMysql,
duration => 3,
}
),
Expand Down

0 comments on commit ffa11a7

Please sign in to comment.