Skip to content

Commit

Permalink
Merge pull request codeigniter4#8545 from kenjis/fix-word-UNIX-timestamp
Browse files Browse the repository at this point in the history
docs: use word "UNIX timestamp" for consistency
  • Loading branch information
kenjis authored Feb 22, 2024
2 parents b371688 + 3ba06c1 commit f7492e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion user_guide_src/source/libraries/cookies/004.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/models/model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7492e5

Please sign in to comment.