Franco Ponticelli 17 anni fa
parent
commit
843d600080
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      std/php/Web.hx

+ 1 - 1
std/php/Web.hx

@@ -227,7 +227,7 @@ class Web {
 		Set a Cookie value in the HTTP headers. Same remark as setHeader.
 	**/
 	public static function setCookie( key : String, value : String, ?expire: Date, ?domain: String, ?path: String, ?secure: Bool ) {
-		var t = expire == null ? 0 : (expire.getTime()/1000.0);
+		var t = expire == null ? 0 : Std.int(expire.getTime()/1000.0);
 		if(path == null) path = '';
 		if(domain == null) domain = '';
 		if(secure == null) secure = false;