diff --git a/modules/Bio/EnsEMBL/DBSQL/DBConnection.pm b/modules/Bio/EnsEMBL/DBSQL/DBConnection.pm index 52046a232d65794b365a94cb713826a045fae912..89db0a0fad68b141de8eafe75f334396d0a2dc98 100644 --- a/modules/Bio/EnsEMBL/DBSQL/DBConnection.pm +++ b/modules/Bio/EnsEMBL/DBSQL/DBConnection.pm @@ -718,10 +718,12 @@ sub from_seconds_to_date{ } elsif ($self->driver eq 'odbc'){ if ($seconds){ - $string = "DATEDIFF(date,'JAN 1 1970',$seconds)"; + $string = "DATEADD(second,$seconds,date)"; +# $string = "DATEDIFF(date,'JAN 1 1970',$seconds)"; } else{ - $string = "\"0000-00-00 00:00:00\""; +# $string = "\"0000-00-00 00:00:00\""; + $string = 'January 1, 1900'; } } else{