From 2db9ba81b955031ed49afe979dc2f2bb91481b38 Mon Sep 17 00:00:00 2001 From: Mathieu Mitchell Date: Thu, 29 Jun 2017 08:18:51 -0400 Subject: [PATCH] Support negative offsets --- pg2mysql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg2mysql.inc.php b/pg2mysql.inc.php index 52e0961..dbe9a14 100644 --- a/pg2mysql.inc.php +++ b/pg2mysql.inc.php @@ -227,7 +227,7 @@ function pg2mysql($input, $header=true) $line=str_replace(" timestamp without time zone"," timestamp",$line); // Strip unsupported timezone information in date fields - $line=preg_replace("/ date DEFAULT '(.*)\+.*'/",' date DEFAULT \'${1}\'',$line); + $line=preg_replace("/ date DEFAULT '(.*)(\+|\-).*'/",' date DEFAULT \'${1}\'',$line); //time $line=str_replace(" time with time zone"," time",$line);