[Rt-commit] r19536 - in rt/3.999/trunk: .
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu May 7 03:24:58 EDT 2009
Author: sunnavy
Date: Thu May 7 03:24:58 2009
New Revision: 19536
Modified:
rt/3.999/trunk/ (props changed)
rt/3.999/trunk/t/api/date.t
Log:
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 Thu May 7 03:24:58 2009
@@ -4,7 +4,7 @@
use Test::MockTime qw(set_fixed_time restore_time);
use RT::Test;
-use Test::More tests => 94;
+use Test::More tests => 92;
use RT::Model::User;
use Test::Warn;
@@ -256,15 +256,10 @@
my $date = RT::DateTime->from_epoch(epoch => 0);
is($date, "unset", "epoch 0 returns 'unset'");
- RT->config->set( date_time_format => '%a %b %d %H:%M:%S %Y');
$date = RT::DateTime->from_epoch(epoch => 1);
- is($date, 'Thu Jan 01 00:00:01 1970', "correct string");
- RT->config->set( date_time_format => '%a, %d %b %Y %H:%M:%S %z' );
+ RT->config->set( date_time_format => 'rfc2822' );
is($date, 'Thu, 01 Jan 1970 00:00:01 +0000', "correct string");
-
- RT->config->set( date_time_format => '%a, %d %b %Y %H:%M %z' );
- is($date, 'Thu, 01 Jan 1970 00:00 +0000', "correct string");
}
{ # RT::DateTime::Duration
More information about the Rt-commit
mailing list