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

T2893 logger date format #14648

Merged
merged 7 commits into from
Dec 23, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[#2893] - Minor correction
  • Loading branch information
niden committed Dec 23, 2019
commit 0f61497a0a8c07598af3724c126f3e7d7d6a679a
7 changes: 1 addition & 6 deletions phalcon/Logger/Formatter/AbstractFormatter.zep
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,7 @@ abstract class AbstractFormatter implements FormatterInterface
var date, timezone;

let timezone = date_default_timezone_get();

if !timezone {
let timezone = "UTC";
}

let date = new DateTimeImmutable("now", new DateTimeZone(timezone));
date = new DateTimeImmutable("now", new DateTimeZone(timezone));

return date->format(this->dateFormat);
}
Expand Down