[PHP-DEV] Re: VCS Account Request: buhlerax

2015-05-04 Thread PHP Group
VCS Account Approved: buhlerax approved by rasmus \o/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Adding weekdays to DateTime resets the time

2015-05-04 Thread Derick Rethans
Hi, This indeed looks like a bug - Happy to have a look at it to fix in timelib: https://github.com/derickr/timelib cheers, Derick On Mon, 4 May 2015, David Lundgren wrote: > There is actually already a bug for about this: > https://bugs.php.net/bug.php?id=54909 > > I ran into this several m

Re: [PHP-DEV] Adding weekdays to DateTime resets the time

2015-05-04 Thread David Lundgren
There is actually already a bug for about this: https://bugs.php.net/bug.php?id=54909 I ran into this several months ago when I upgraded a project from 5.3.2 to 5.5 and found that in 5.3.6 the behavior had changed. I ended up working around it in my code. It was definitely annoying but had we upgr

Re: [PHP-DEV] Adding weekdays to DateTime resets the time

2015-05-04 Thread Stelian Mocanita
I think the best approach would be to open a bug under https://bugs.php.net/ since this does not look like intended behavior. Regards, Stelian On Mon, May 4, 2015 at 5:33 PM, Markus Fasselt wrote: > Hi, > > when I modify a DateTime object and add or subtract weekdays, it happens > that the curr

[PHP-DEV] Adding weekdays to DateTime resets the time

2015-05-04 Thread Markus Fasselt
Hi, when I modify a DateTime object and add or subtract weekdays, it happens that the current time is reset to 00:00:00. This effect does not occur when I add days. I also experienced the same behavior with strototime. > > $a = new DateTime(strtotime('2015-05-04 17:22')); > var_dump((string) $a