codegooglecom / mytopix

Automatically exported from code.google.com/p/mytopix
0 stars 0 forks source link

24 hour time format support #187

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Add support for 24 hour time format instead of the AM/PM system only. Or
even better, enable a user to choose his own custom time format by letting
him enter the php date() parameters. 

Original issue reported on code.google.com by netmed...@gmail.com on 3 Feb 2007 at 11:49

GoogleCodeExporter commented 8 years ago
I would have added the ability for users to enter their own time format if there
wasn't such a big risk of them mucking it up by not escaping stuff properly. 
I'll
think this one over. :)

Original comment by Wilhelm....@gmail.com on 5 Feb 2007 at 1:10

GoogleCodeExporter commented 8 years ago
Simple 24h timeformat mod by Carsten:

Step 1. Open settings.php
Step 2. Find $config['date_long'] and $config['date_short'] (normally at line 
12 and 13)
Step 3. replace "h:i A" with "H:i" in both lines.

For example:

Change

$config['date_long'] = 'F j, Y \a\t h:i A';
$config['date_short'] = 'F j, Y \a\t h:i A';

into

$config['date_long_24'] = 'F j, Y \a\t H:i';
$config['date_short_24'] = 'F j, Y \a\t H:i';

Original comment by netmed...@gmail.com on 5 Feb 2007 at 4:33

GoogleCodeExporter commented 8 years ago

Original comment by Wilhelm....@gmail.com on 17 Jun 2007 at 12:28