-
Notifications
You must be signed in to change notification settings - Fork 240
Manage downtimes with dst (recurrent and realtime) #5780
Conversation
$dateTime = new \DateTime($date, new \DateTimeZone($timezone)); | ||
|
||
// Winter to summer dst | ||
$dateTime2 = clone($dateTime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clone $dateTime without incidentally
{ | ||
$dstDate = new DateTime('now', $timezone); | ||
$dstDate->setTimestamp($timestamp); | ||
$dateTime2 = clone($dstDate); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clone
); | ||
$output = $return['output']; | ||
if ( | ||
preg_match_all( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Styles: phpcs mark this new line as an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
290
); | ||
$output = $return['output']; | ||
if ( | ||
preg_match( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Styles: phpcs mark this new line as an error (339)
to cherry-pick on master
An other pull request is coming for 2.7.x