docs: add note to Time::difference() and DST#8659
Closed
kenjis wants to merge 2 commits intocodeigniter4:developfrom
Closed
docs: add note to Time::difference() and DST#8659kenjis wants to merge 2 commits intocodeigniter4:developfrom
kenjis wants to merge 2 commits intocodeigniter4:developfrom
Conversation
datamweb
reviewed
Mar 26, 2024
|
|
||
| use CodeIgniter\I18n\Time; | ||
|
|
||
| $current = Time::parse('2024-03-31', 'Europe/Madrid'); |
Contributor
There was a problem hiding this comment.
This is not related to this PR, but I recently read the documentation for Time::class.
The point is that dates in the database are commonly stored as yyyy-MM-dd HH:mm:ss, but there is no example of using this form in the document. I think you can use 2024-03-31 00:00:00 instead of 2024-03-31 .
Member
Author
|
I sent another PR to fix the behavior: #8659 |
5 tasks
Member
Author
|
Go to #8661 |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
See https://forum.codeigniter.com/showthread.php?tid=90472
This may be a bug, but I don't know how to fix.
Checklist: