Browse Source

Fix parse and timezoneConvert

Pascal Peridont 18 years ago
parent
commit
7c6750a6b0
1 changed files with 2 additions and 5 deletions
  1. 2 5
      std/mtwin/DateFormat.hx

+ 2 - 5
std/mtwin/DateFormat.hx

@@ -97,11 +97,8 @@ class DateFormat {
 		}
 
 		var ret = new Date(y,m-1,d,h,i,s);
-
-		if( REG_TZ.match(str) ){
-			timezoneConvert(ret,REG_TZ.matched(1));
-		}
-
+		if( REG_TZ.match(str) )
+			ret = timezoneConvert(ret,REG_TZ.matched(1));
 		return ret;
 	}