Browse Source

Fix parse and timezoneConvert

Pascal Peridont 18 năm trước cách đây
mục cha
commit
7c6750a6b0
1 tập tin đã thay đổi với 2 bổ sung5 xóa
  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);
 		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;
 		return ret;
 	}
 	}