]> git.donarmstrong.com Git - debbugs.git/commitdiff
Make sure the timestamp is set from UTC
authorDon Armstrong <don@volo>
Sat, 21 Oct 2006 08:10:21 +0000 (01:10 -0700)
committerDon Armstrong <don@volo>
Sat, 21 Oct 2006 08:10:21 +0000 (01:10 -0700)
scripts/gen-indices.in

index bd1766a635237f3086b1e5359fbd0d9435fc9782..b701ea59b89853e25272b162126b830e04047f30 100755 (executable)
@@ -205,5 +205,6 @@ if (not $options{quick}) {
 for my $i (@indexes) {
        untie %{$slow_index{$i}};
        move("$indexdest/by-$i$suffix.idx.new", "$indexdest/by-$i$suffix.idx");
-       system('touch','-d',"1/1/1970 + ${start_time}secs","$indexdest/by-$i$suffix.idx");
+       # We do this, because old versions of touch don't support -d '@epoch'
+       system('touch','-d',"1/1/1970 UTC + ${start_time}secs","$indexdest/by-$i$suffix.idx");
 }