Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change date format of ezLog::write to ISO8601 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lorello
Copy link

@lorello lorello commented May 6, 2019

This format is easier to parse: no language dependency in month string and no white spaces as separator of date components.
The use of constant DateTime::ISO8601 (instead of the simpler 'c' parameter) is just to make it more readable: the class DateTime is available starting from PHP 5.5 so should be safe use it, but if we have still some environment running on 5.4 we can fallback to 'c' paramenter.

This change could break existing scripts that parse the old format, MERGE WITH CAUTION

This format is easier to parse: no language in month string and no white spaces as separator of date components.
The use of constant DateTime::ISO8601 (instead of the simpler 'c' parameter) is just to make it more readable.
@Opencontent
Copy link
Owner

@Opencontent
Copy link
Owner

the class DateTime is available starting from PHP 5.5

DateTime class is include from from php 5.2
https://www.php.net/manual/en/class.datetime.php

Opencontent pushed a commit that referenced this pull request Nov 16, 2024
Update README.md clarified free software license for ibexa oss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants