Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Kellonaikakorjaus:
- config.php rivit 182-> (timezonet kuntoon date_default_timezone_set():llä)
- // Language / timezone / encoding
- $cf['KU_LOCALE'] = 'fi'; // The locale of kusaba you would like to use. Locales available: en, de, et, es, fi, pl, nl, nb, ro, ru, it, ja
- $cf['KU_CHARSET'] = 'UTF-8'; // The character encoding to mark the pages as. This must be the same in the .htaccess file (AddCharset charsethere .html and AddCharset charsethere .php) to function properly. Only UTF-8 and Shift_JIS have been tested
- putenv('TZ=Europe/Helsinki'); // The time zone which the server resides in
- date_default_timezone_set('Europe/Helsinki');
- $cf['KU_DATEFORMAT'] = 'd/m/Y(D)H:i';
- Päivämäärän näyttö suomalaiseksi:
- inc/func/stringformatting.php rivit 65-> (eli lisätään elseif fi-lokaalille, jossa päivämäärän muotoilut)
- return $output.$fulldate.(($email != '') ? ('</a>') : (""));
- } elseif ($locale == 'fi'){
- /* Format the timestamp finnish style */
- return $output.date('d.m.Y H:i', $timestamp).(($email != '') ? ('</a>') : (""));
- } else {
- /* Format the timestamp english style */
- return $output.date('y/m/d(D)H:i', $timestamp).(($email != '') ? ('</a>') : (""));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement