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.

Form Questions /

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


Reply


550 Views

Avatar
yurigoul

Community Member, 202 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.