Skip to content

Commit

Permalink
Item10389: Force the date of the VeryOldTopic to be at least a day af…
Browse files Browse the repository at this point in the history
…ter epoch, to avoid issues with timezones

git-svn-id: http://svn.foswiki.org/branches/Release01x01@10759 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Feb 21, 2011
1 parent d20364a commit df0e570
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions UnitTestContrib/test/unit/Fn_SEARCH.pm
Expand Up @@ -3543,14 +3543,15 @@ HERE
my $topicObject =
Foswiki::Meta->new( $this->{session}, $this->{test_web}, "VeryOldTopic",
$text );
my $rev = $topicObject->save( forcedate => 123 );
my $rev = $topicObject->save( forcedate => 86420 ); # > 86400, see Item10389
$this->assert_num_equals( 1, $rev );
my $file_date =
$this->{session}->{store}
->getApproxRevTime( $this->{test_web}, "VeryOldTopic" );

#TODO: sadly, the core Handlers don't set the filedate, even though they could
#$this->assert_num_equals(123, $file_date);
#TODO: sadly, the core Handlers don't set the filedate
# even though they could
# my $file_date =
# $this->{session}->{store}
# ->getApproxRevTime( $this->{test_web}, "VeryOldTopic" );
# $this->assert_num_equals(86420, $file_date);

my $result = $this->{test_topicObject}

Expand Down

0 comments on commit df0e570

Please sign in to comment.