Skip to content

Commit

Permalink
[#2893] - Minor correction
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Feb 4, 2020
1 parent ec529b7 commit c8855a7
Showing 1 changed file with 1 addition and 6 deletions.
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

0 comments on commit c8855a7

Please sign in to comment.