diff --git a/user_guide_src/source/libraries/cookies/004.php b/user_guide_src/source/libraries/cookies/004.php index cce1ea2c726d..7804d276b2f6 100644 --- a/user_guide_src/source/libraries/cookies/004.php +++ b/user_guide_src/source/libraries/cookies/004.php @@ -22,7 +22,7 @@ $cookie->getName(); // 'remember_token' $cookie->getPrefix(); // '__Secure-' $cookie->getPrefixedName(); // '__Secure-remember_token' -$cookie->getExpiresTimestamp(); // Unix timestamp +$cookie->getExpiresTimestamp(); // UNIX timestamp $cookie->getExpiresString(); // 'Fri, 14-Feb-2025 00:00:00 GMT' $cookie->isExpired(); // false $cookie->getMaxAge(); // the difference from time() to expires diff --git a/user_guide_src/source/models/model.rst b/user_guide_src/source/models/model.rst index 74225cd7869c..d40c07ba6e6b 100644 --- a/user_guide_src/source/models/model.rst +++ b/user_guide_src/source/models/model.rst @@ -184,7 +184,7 @@ $dateFormat This value works with `$useTimestamps`_ and `$useSoftDeletes`_ to ensure that the correct type of date value gets inserted into the database. By default, this creates DATETIME values, but -valid options are: ``'datetime'``, ``'date'``, or ``'int'`` (a PHP timestamp). Using `$useSoftDeletes`_ or +valid options are: ``'datetime'``, ``'date'``, or ``'int'`` (a UNIX timestamp). Using `$useSoftDeletes`_ or `$useTimestamps`_ with an invalid or missing `$dateFormat`_ will cause an exception. $createdField