Explorar el Código

Fix parse and timezoneConvert

Pascal Peridont hace 18 años
padre
commit
7c6750a6b0
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  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;
 	}