Odnosnie tego linka co mi dales Roadway to mam phpBB by Przemo i niestety moja dotychczasowa wiedza nie pozwala mi w 100% zrobic tego, wiec mam cos takiego:
Kod:
// Create date/time from format and timezone
//
function create_date($format, $gmepoch, $tz, $no_today = false)
{
global $board_config, $lang;
static $translate;
if ( empty($translate) && $board_config['default_lang'] != 'english' )
{
@reset($lang['datetime']);
while ( list($match, $replace) = @each($lang['datetime']) )
{
$translate[$match] = $replace;
}
}
$tz_add = ($board_config['auto_date']) ? (3600 * ($tz + (@date('I', $gmepoch) && @date('I', CR_TIME)))) : (3600 * $tz);
$epoch_time = $gmepoch + $tz_add;
$current_time = CR_TIME + $tz_add;
$cyear = @gmdate('Y', $current_time);
$cmonth = @gmdate('n', $current_time);
$cday = @gmdate('j', $current_time);
$chour = @gmdate('G', $current_time);
$cmin = @gmdate('i', $current_time);
$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));
$yesterday_begin = $today_begin - 86400;
if ( $epoch_time > $yesterday_begin && $epoch_time < $today_end && !$no_today )
{
if ( $epoch_time < $today_begin )
{
return $lang['Yesterday'] . ' ' . @gmdate('G:i', $epoch_time);
}
else
{
return $lang['Today'] . ' ' . @gmdate('G:i', $epoch_time);
}
}
return ( !empty($translate) ) ? strtr(@gmdate($format, $epoch_time), $translate) : @gmdate($format, $epoch_time);
}
//
// Pagination routine, generates
// page number sequence
To jest caly ten kod z data. Gdzie dokladnie to podmienic?
Pisze tutaj o problemie z data, ktora jest u gory po lewej na forach. A przy okazji jeszcze sie zapytam - Uzytkownicy na forum maja rozna date. Date ustawia sie w PA. Czy da sie wprowadzic jakis kod zeby od razu wszystkim zmienilo date?
POZDRO dla wszystkich