changeset 239:86e95adc325b

Don't discard times when sorting by date.
author Steve Kemp <steve@steve.org.uk>
date Fri, 16 May 2008 17:36:55 +0100
parents 9537c32b1e95
children e1d0a8576342
files bin/chronicle
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/chronicle	Sun May 04 13:49:00 2008 +0100
+++ b/bin/chronicle	Fri May 16 17:36:55 2008 +0100
@@ -845,8 +845,8 @@
     #
     #  Convert to compare
     #
-    my $c = timelocal( 0, 0, 0, $day1, $month1, $year1 + 1900 );
-    my $d = timelocal( 0, 0, 0, $day2, $month2, $year2 + 1900 );
+    my $c = timelocal( $ss1, $mm1, $hh1, $day1, $month1, $year1 + 1900 );
+    my $d = timelocal( $ss2, $mm2, $hh2, $day2, $month2, $year2 + 1900 );
 
     return $d <=> $c;
 }