Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

strftime('%d. %B %Y %H.%i', strtotime($myDateTime)) returns 06. Juni 2013 19.%i


Go to End


1559 Views

Avatar
yurigoul

Community Member, 203 Posts

2 August 2013 at 3:26am

Edited: 02/08/2013 3:28am

When using a DateTimeField strftime('%d. %B %Y %H.%i', strtotime($myDateTime)) returns 06. Juni 2013 19.%i (instead of 19.00)

I have seen that in datetime.php mm is used for the minutes, but it does not do the trick

I am not looking for a solution, I already found one: I left out the time part and used $myDateTime.Time24() in my template to get the time.

Anyone willing to create a bug report be my guest.