Skip to content
Permalink
Browse files

Fix Mech and timezone issues.

  • Loading branch information...
perlDreamer committed Oct 19, 2011
1 parent 5a11540 commit ffa11a7191ba8bea7843b5b456e37a3e23e0936c
Showing with 3 additions and 3 deletions.
  1. +3 −3 t/Asset/Wobject/EventManagementSystem.t
@@ -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'], {
@@ -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,
}
),

0 comments on commit ffa11a7

Please sign in to comment.
You can’t perform that action at this time.