phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

FAQFAQ - PIERWSZA POMOC!!  regulaminREGULAMIN  SzukajSZUKAJ  UżytkownicyUżytkownicy  GrupyGrupy  StatystykiStatystyki
RejestracjaRejestracja  ZalogujZaloguj  DownloadDownload  katalog Forów DyskusyjnychKatalog Forów   FAQ Video tutoriale

Poprzedni temat «» Następny temat
time format
Autor Wiadomość
spacegoose

Posty: 22
Wysłany: 27-03-2007, 23:28   time format

how can i change to the 12-hour clock?

thanks,
sg
 
     
Gadatliwa Kasia 

   
chelloPL



Pomógł: 413 razy
Posty: 2544
Wysłany: 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

Posty: 22
Wysłany: 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



Pomógł: 413 razy
Posty: 2544
Wysłany: 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

Posty: 22
Wysłany: 30-03-2007, 00:15   Yes

That was it.

Thanks chelloPL,
sg
 
     
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Możesz załączać pliki na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Kopiowanie wszelkich treści zawartych na forum, modyfikacji oraz instrukcji bez zgody administracji i autorów tematów/postów zabronione!

Powered by phpBB modified by Przemo © 2003 phpBB
Strona wygenerowana w 0,1 sekundy. Zapytań do SQL: 12
Polecane serwisy

Najlepsze oprogramowanie do prowadzenia sklepu internetowegoNajlepszy program do sklepu firmowany przez Przem'a

Sklep z gadżetami

Design Cart - Tworzenie sklepu internetowego

iRonin.IT

https://nabea.pl

• Zamów reklamę