Skip to content

Commit

Permalink
feat: switch from leaf date to tick
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Apr 2, 2023
1 parent 29a9721 commit f293438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Auth.php
Expand Up @@ -145,7 +145,7 @@ public static function register(array $credentials, array $uniques = [])
}

if (static::$settings['USE_TIMESTAMPS']) {
$now = Date::now();
$now = (new \Leaf\Date())->tick()->now();
$credentials['created_at'] = $now;
$credentials['updated_at'] = $now;
}
Expand Down Expand Up @@ -266,7 +266,7 @@ public static function update(array $credentials, array $uniques = [])
}

if (static::$settings['USE_TIMESTAMPS']) {
$credentials['updated_at'] = Date::now();
$credentials['updated_at'] = (new \Leaf\Date())->tick()->now();
}

if (count($uniques) > 0) {
Expand Down

0 comments on commit f293438

Please sign in to comment.