1--TEST-- 2Bug #52454 (Relative dates and getTimestamp increments by one day) 3--FILE-- 4<?php 5date_default_timezone_set('Europe/London'); 6 7$endOfWeek = new DateTime('2010-07-27 09:46:49'); 8$endOfWeek->modify('this week +6 days'); 9 10echo $endOfWeek->format('Y-m-d H:i:s')."\n"; 11echo $endOfWeek->format('U')."\n"; 12 13/* Thar she blows! */ 14echo $endOfWeek->getTimestamp()."\n"; 15 16echo $endOfWeek->format('Y-m-d H:i:s')."\n"; 17?> 18--EXPECT-- 192010-08-01 09:46:49 201280652409 211280652409 222010-08-01 09:46:49 23