Menu

#12 am/pm wrong in Latest module (fix)

open
nobody
None
5
2008-01-23
2008-01-23
No

In the mod_extcalendar_latest module "am" and "pm" would not display properly for enddate. There is an error in the extcal_latest_func.php file. Line 72 reads as follows:
else { $end_time = date("g:i", mktime($end_time_array[0], $end_time_array[1], 0, 1, 1, 1975)) . (($enddate['4'] == '') ? date(" a", mktime($start_time_array[0], $start_time_array[1], 0, 1, 1, 1975)) : ' '.strtolower($enddate['4']));}

It should be:
else { $end_time = date("g:i", mktime($end_time_array[0], $end_time_array[1], 0, 1, 1, 1975)) . (($enddate['4'] == '') ? date(" a", mktime($end_time_array[0], $end_time_array[1], 0, 1, 1, 1975)) : ' '.strtolower($enddate['4']));}

Rather than calling for start_time_array it should call for end_time_array.

Discussion

  • Steven Lawler

    Steven Lawler - 2008-01-23

    Corrected extcal_latest_func.php

     
  • Steven Lawler

    Steven Lawler - 2008-01-23
    • summary: am/pm wrong in Latest module --> am/pm wrong in Latest module (fix)
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.