Browse Source

Consider user time zone in Validator\date

Visman 1 year ago
parent
commit
71dda154a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Core/Validator.php

+ 1 - 1
app/Core/Validator.php

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