Skip to content

Conversation

@andrewnester
Copy link
Contributor

Fix for https://bugs.php.net/bug.php?id=74639

Implemented clone functionality for DatePeriod and DateInterval.
This functionality has been missed previously.

@tpunt
Copy link
Contributor

tpunt commented May 26, 2017

/cc @derickr

@krakjoe krakjoe added the Bug label May 29, 2017
Copy link
Member

@derickr derickr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although I would modify the test case as per comment.

<?php

$start = new DateTime('2017-05-22 09:00:00', new \DateTimeZone('Europe/Berlin'));
$end = new DateTime('2017-08-24 18:00:00', new \DateTimeZone('Europe/Berlin'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of hard coding the timezone here, I would have put that in an --INI-- setting and used UTC.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@derickr thanks! to be fair we don't need to set timezone in this test at all. So I removed it, thanks

@andrewnester
Copy link
Contributor Author

@krakjoe any conclusion on this?

@krakjoe
Copy link
Member

krakjoe commented Jun 1, 2017

Merged 48598a2

Thanks.

@krakjoe krakjoe closed this Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants