To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

F.A.Q. - Read it first! - Dates on forum: today, yesterday incorrectly displayed

Matteo - 07-09-2010, 22:21
Temat postu: Dates on forum: today, yesterday incorrectly displayed
If someone else doesn't have the correct format of your date and in the forum appear wrong date, namely: a new day begins at 23:00 (11pm) should apply this amendment:
Open file includes/functions.php, find function create_date, and:
FIND:
Kod:
    $today_begin = @gmmktime(0, 0, 0, $cmonth, $cday, $cyear, @date('I', $current_time));
    $today_end = @gmmktime(23, 59, 59, $cmonth, $cday, $cyear, @date('I', $current_time));

REPLACE WITH:
Kod:
    $today_begin = @gmmktime(0, 0, 0, $cmonth, $cday, $cyear);
    $today_end = @gmmktime(23, 59, 59, $cmonth, $cday, $cyear);


(original content)



Powered by phpBB modified by Przemo © 2003 phpBB Group