English version - time format
spacegoose - 27-03-2007, 23:28 Temat postu: time format how can i change to the 12-hour clock?
thanks,
sg
chelloPL - 28-03-2007, 00:01
Global (forum) change format: PA -> general admin -> configuration -> main -> Date format
Per user change: on main forum page, click "preferences" and change "date format".
Global change will affect only to new users and guests. Already existing users should it change in theirs preferences.
spacegoose - 28-03-2007, 20:19
thanks - i tried this. but all new posts seem to default to military time (24-hour clock) - when logged in or not. this setting is not working since our upgrade from 1.8 ... older posts from 1.8 seem to have the correct 12-hour clock format.
thanks,
sg
the current time is displayed correctly (on the index page) - but posting time is 24-hour format
here's the index: The time now is Wed Mar 28, 2007 2:33 pm
here's a post: Posted: Today 14:33
chelloPL - 29-03-2007, 20:38
You have not told us your forum address, so I can't verify this and check where is a problem.
[ Added: 29-03-2007, 20:45 ]
Hmm - or maybe the problem is in includes/functions.php?
Could you find the code:
Kod: | if ( $epoch_time < $today_begin )
{
return $lang['Yesterday'] . ' ' . @gmdate('G:i', $epoch_time);
}
else
{
return $lang['Today'] . ' ' . @gmdate('G:i', $epoch_time);
} |
and change it to:
Kod: | if ( $epoch_time < $today_begin )
{
return $lang['Yesterday'] . ' ' . @gmdate('g:i a', $epoch_time);
}
else
{
return $lang['Today'] . ' ' . @gmdate('g:i a', $epoch_time);
} |
" a" is optional - it adds "am" or "pm" as described in this php function: date.
spacegoose - 30-03-2007, 00:15 Temat postu: Yes That was it.
Thanks chelloPL,
sg
|
|
|