Time Picker - 15min increment hack - stopped working after upgrade to concrete5 v 5.6.3.1

Permalink
This hack was working nicely until I upgraded to the latest version of concrete5. The edits are still there it just doesn't work anymore. Maybe the newest version looks at a different file but I'm not sure.

Edited the following file:
/var/www/mo-office/concrete/core/helpers/form/date_time.php

Change this line (line 128?) from:
$html .= '<option value="' . sprintf('%02d', $i) . '" ' . $selected . '>' . sprintf('%02d', $i) . '</option>';

To:
$html .= ($i%15==0)?'<option value="' . sprintf('%02d', $i) . '" ' . $selected . '>' . sprintf('%02d', $i) . '</option>':;


# concrete5 Version
5.6.3.1

# concrete5 Packages
Constants Info (1.1), earthling two theme (1.4), Fancy Image Links (1.3.7), Galleria image gallery (2.0), Pixo Form Templates (1.0.1).

# concrete5 Overrides
mail/block_form_submission.php.orig, mail/block_form_submission.php.new, mail/block_form_submission.php, single_pages/OCC-banner-small.png, single_pages/single_pages.css, single_pages/TicketMasterZ.jpg, single_pages/quick-help-ne-itic-view-ticket, single_pages/quick-help-mo-itic-view-ticket, single_pages/onecallbanner.gif

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 60 minutes.

# Server Software
Apache/2.2.22 (Ubuntu)

# Server API
apache2handler

# PHP Version
5.4.6-1ubuntu1.8

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, libxml, mbstring, mcrypt, memcached, mhash, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, Zend OPcache, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 40
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 40M
sql.safe_mode - Off
upload_max_filesize - 40M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

 
JohntheFish replied on at Permalink Reply
JohntheFish
There were some major changes to the date/time code in 5.6.3 to support internationalisation (and some new bugs that led to 5.6.3.1 being released). I suspect you may have to re-visit such an override from scratch.
joshuas replied on at Permalink Reply
Thank you. I was hoping that maybe someone already rebuilt the hack for the newest version of Concrete5.