Browse Source

Consider user time zone in Validator\date

Visman 1 năm trước cách đây
mục cha
commit
71dda154a5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Core/Validator.php

+ 1 - 1
app/Core/Validator.php

@@ -960,7 +960,7 @@ class Validator
         }
 
         if (\is_string($value)) {
-            $timestamp = \strtotime("{$value} UTC");
+            $timestamp = $this->c->Func->dateToTime($value);
         } else {
             $timestamp = false;
         }