Skip to content
Snippets Groups Projects
Commit c02c83d1 authored by Eric-Alexander Schaefer's avatar Eric-Alexander Schaefer
Browse files

#263906 by krishnap: Compatibility with PHP4 (Release 5.x-1.14 used a PHP5-only function)

parent 060e8c27
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ function _scheduler_date_format_in_strftime_syntax() {
function _scheduler_get_jscalendar_time_format() {
$date_format = variable_get('scheduler_date_format', SCHEDULER_DATE_FORMAT);
$result = stripos($date_format, "a");
$result = strpos($date_format, stristr($date_format, "a"));
return ($result !== FALSE) ? '12' : '24';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment