Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 08:46 am EST

Geeklog Forums

timezone hack problem


Status: offline

garfy

Forum User
Full Member
Registered: 01/02/05
Posts: 437
Location:EU
Hi

I read that post but i was lost

can i please just post what i did and you tell me what went wrong???

in lib common i changed this

// timezone hack - set the webserver's timezone
if( !empty( $_CONF['Europe/Ljubljana'] ) && !ini_get( 'safe_mode' ) &&
function_exists( 'putenv' )) {
putenv( 'TZ=' . $_CONF['Europe/Ljubljana'] );
}



and in config i did this
// For more information, see this discussion on geeklog.net:
// http://www.geeklog.net/forum/viewtopic.php?showtopic=21232
// $_CONF['Europe/Ljubljana'] = 'Etc/GMT+1'; // e.g. 6 hours behind GMT


i get the error so what is wrong
can someone tell me??
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
First of all, the timezone hack is built into Geeklog now, so you don't have to change anything in lib-common.php. Revert the changes you made there.

Also note that you made the changes to the wrong side of the '=' sign. Try
Text Formatted Code
$_CONF['timezone'] = 'Europe/Ljubljana';
 

And don't forget to remove the // in front of that line in config.php.

bye, Dirk
 Quote

Status: offline

garfy

Forum User
Full Member
Registered: 01/02/05
Posts: 437
Location:EU
wow it is working

thank you Dirk

What about the date on the top page it is still in english language

everything else works with my language pack but not the date on the top of the page on the right side

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Did you set the locale, $_CONF['locale']?

bye, Dirk
 Quote

Status: offline

garfy

Forum User
Full Member
Registered: 01/02/05
Posts: 437
Location:EU
no
i do not know what is the code for my country

$_CONF['locale'] = 'en_GB';

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That would be Slovenia then? Try

$_CONF['locale'] = 'sl_SI';

(that's "sl" with a lower-case 'L', and "SI" with an upper-case 'i').

bye, Dirk
 Quote

Status: offline

garfy

Forum User
Full Member
Registered: 01/02/05
Posts: 437
Location:EU
thank you it works
 Quote

All times are EST. The time is now 08:46 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content