Can time be set to 24h instead of am/pm ? Can time be set to 24h instead of am/pm ?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Can time be set to 24h instead of am/pm ?

Started by golf16vkr, February 23, 2004, 08:37:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

golf16vkr

Can time be set to 24h instead of am/pm ?

Thanks again.

Joachim Müller

actually, the time is set in your language file, using the time options that are most widely used in the countries where your language is spoken.
Edit your language file (lang/yourlanguage.php), and look for// The various date formats
// See http://www.php.net/manual/en/function.strftime.php to define the variable below
$album_date_fmt =    '%B %d, %Y';
$lastcom_date_fmt =  '%m/%d/%y @ %H:%M';
$lastup_date_fmt = '%B %d, %Y';
$register_date_fmt = '%B %d, %Y';
$lasthit_date_fmt = '%B %d, %Y @ %I:%M %p';
$comment_date_fmt =  '%B %d, %Y @ %I:%M %p';
(this is from the english language file).
What time do you want to change exactly? Please provide a deep link...

GauGau

golf16vkr

Well I would like it as follows :

Last comment posted 21:13 instead of 09:13 pm

[Feb 23, 2004 @ 08:02 PM] would like it to be [Feb 23, 2004 @ 20:02]

btw this goes for the comment section, here is an example :

http://66.98.210.46/vwscene.nl/gallery/displayimage.php?album=5&pos=0

Joachim Müller

edit your language file and find $lastcom_date_fmt =  '%m/%d/%y @ %I:%M';Replace it with$lastcom_date_fmt =  '%m/%d/%y @ %H:%M';For details (as suggested above) go to http://www.php.net/manual/en/function.strftime.php

GauGau

Casper

Slight alteration to the code to change, which has '%p' which also needs to go, ie,

$lastcom_date_fmt =  '%m/%d/%y @ %I:%M %p';

replace with the code gaugau said.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here