use Date helper
This commit is contained in:
parent
acbabf5b18
commit
1b1ea26327
@ -18,7 +18,7 @@ use dcAuth;
|
|||||||
use dcBlog;
|
use dcBlog;
|
||||||
use dcCore;
|
use dcCore;
|
||||||
use dcUtils;
|
use dcUtils;
|
||||||
use dt;
|
use Dotclear\Helper\Date;
|
||||||
|
|
||||||
class Utils
|
class Utils
|
||||||
{
|
{
|
||||||
@ -167,7 +167,7 @@ class Utils
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return "AND $field > TIMESTAMP '" . dt::str($pattern, time() - $time) . "' ";
|
return "AND $field > TIMESTAMP '" . Date::str($pattern, time() - $time) . "' ";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function periods(): array
|
public static function periods(): array
|
||||||
|
Loading…
Reference in New Issue
Block a user