Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.20 KB | None | 0 0
  1. Kellonaikakorjaus:
  2. config.php rivit 182-> (timezonet kuntoon date_default_timezone_set():llä)
  3. // Language / timezone / encoding
  4. $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
  5. $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
  6. putenv('TZ=Europe/Helsinki'); // The time zone which the server resides in
  7. date_default_timezone_set('Europe/Helsinki');
  8. $cf['KU_DATEFORMAT'] = 'd/m/Y(D)H:i';
  9.  
  10.  
  11. Päivämäärän näyttö suomalaiseksi:
  12. inc/func/stringformatting.php rivit 65-> (eli lisätään elseif fi-lokaalille, jossa päivämäärän muotoilut)
  13.  
  14.             return $output.$fulldate.(($email != '') ? ('</a>') : (""));
  15.         } elseif ($locale == 'fi'){
  16.             /* Format the timestamp finnish style */
  17.             return $output.date('d.m.Y H:i', $timestamp).(($email != '') ? ('</a>') : (""));
  18.         } else {
  19.             /* Format the timestamp english style */
  20.             return $output.date('y/m/d(D)H:i', $timestamp).(($email != '') ? ('</a>') : (""));
  21.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement