Time Problem: always ten past xx

From: Date: Tue, 06 Oct 2009 07:53:25 +0000
Subject: Time Problem: always ten past xx
Groups: php.general 
Request: Send a blank email to php-general+get-298631@lists.php.net to get a copy of this message
Hey everybody, I've got a strange problem. Using PHP5.3 on my MacBook. There is a script, which handles input from user, in this case a date and time. So I get for example "10:30" and "06.10.2009". Standard german time format. Now I try to get the correct timestamp: $time = strtotime("06.10.2009 10:30"); var_dump($time); var_dump(strftime("%d.%m.%Y %H:%m",$time)); But the result is as int 1254817800 string '06.10.2009 10:10' (length=16) The minutes are always "10", no matter what time I get. Anyone a clue? Thanks, Mattes P.S.: default timezone is set to date_default_timezone_set('Europe/Berlin');

« previous php.general (#298631) next »