[freeside-commits] freeside/FS/FS cdr.pm,1.44,1.45
Ivan,,,
ivan at wavetail.420.am
Mon Jul 6 17:48:00 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv9779
Modified Files:
cdr.pm
Log Message:
on CDR date parse, consider 1970-01-01 NULL like 1900-01-01, RT#4081
Index: cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cdr.pm,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- cdr.pm 5 Jul 2009 21:35:52 -0000 1.44
+++ cdr.pm 7 Jul 2009 00:47:58 -0000 1.45
@@ -766,8 +766,8 @@
die "unparsable date: $date"; #maybe we shouldn't die...
}
- return '' if $year == 1900 && $mon == 1 && $day == 1
- && $hour == 0 && $min == 0 && $sec == 0;
+ return '' if ( $year == 1900 || $year == 1970 ) && $mon == 1 && $day == 1
+ && $hour == 0 && $min == 0 && $sec == 0;
if ($options{gmt}) {
timegm($sec, $min, $hour, $day, $mon-1, $year);
More information about the freeside-commits
mailing list