[Rt-commit] r19061 - rt/3.999/trunk/t/api

sartak at bestpractical.com sartak at bestpractical.com
Mon Apr 6 13:40:53 EDT 2009


Author: sartak
Date: Mon Apr  6 13:40:52 2009
New Revision: 19061

Modified:
   rt/3.999/trunk/t/api/date.t

Log:
Ensure that the time zone is Moscow

Modified: rt/3.999/trunk/t/api/date.t
==============================================================================
--- rt/3.999/trunk/t/api/date.t	(original)
+++ rt/3.999/trunk/t/api/date.t	Mon Apr  6 13:40:52 2009
@@ -4,7 +4,7 @@
 use Test::MockTime qw(set_fixed_time restore_time);
 use RT::Test;
 
-use Test::More tests => 93;
+use Test::More tests => 94;
 
 use RT::Model::User;
 use Test::Warn;
@@ -218,6 +218,7 @@
 {
     RT->config->set( TimeZone => 'Europe/Moscow' );
     my $date = RT::DateTime->new_from_string('2005-11-28 15:10:00');
+    is($date->time_zone->name, 'Europe/Moscow');
     is($date->iso, '2005-11-28 15:10:00', "YYYY-DD-MM hh:mm:ss");
 
     $date = RT::DateTime->new_from_string('2005-11-28 15:10:00', time_zone => 'UTC' );


More information about the Rt-commit mailing list