Jump to content


Photo

Upcoming Calendar Events Hook doesn't respect date format setting


If I set my format to DD/MM/YYYY in System Settings > IPS Apps > Calendar & Birthdays the Upcoming Calendar Events hook doesn't respect that setting, still showing MM/DD/YYYY.

Status: Duplicate
Version: 3.3.0
Fixed In:


4 Comments

Thanks for logging this. Will I be informed if and when there is a fix?

Thanks again
Just do it manually (for now) as per the link/topic I posted earlier. I am not sure this will ever be fixed.

Thanks for logging this. Will I be informed if and when there is a fix? Thanks again


Here's the fix:

the upcoming calendar events is fixed to fix it
You can change that %x in the file /admin/applications_addon/ips/calendar/sources/hooks.php, using the above items.. If you're only on one language.. Not a problem.. Where the problem comes in is if the user has English, Spanish and French.. We have to run it through Locale so that the language words (Month name, basically) comes out right.

use the parameters here
http://www.php.net/m...on.strftime.php


Change line 637 (or thereabouts)

change

$c_time = gmstrftime( '%x', $event['_start_time'] );

to
$c_time = gmstrftime( '%d %b %Y', $event['_start_time'] );