Welcome to Geeklog, Anonymous Tuesday, November 26 2024 @ 07:34 pm EST

Geeklog Forums

What is the locale setting (e.g. en-gb)?

Page navigation


Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
What does it actually do? I've noticed it can be defined both for the general site and for RSS feeds.

The example in config.html is names of months. But aren't those hardcoded within each language file's $LANG_MONTH? And pretty much every other locale setting (including timezone) is also hardcoded from within the very same locale settings.

What else is there but en-gb anyway and how can I know how it differs?
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Bump. Frown
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
I can only give you an example from my German sites. I don`t notice if I have the correct de_DE.UTF-8 setting until there are months where I have special characters like März. Then the date in "Welcome to Geeklog" is shown incorrectely.
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
:rtfm: Languages and Locale
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
:speechless:
Quote by: LWC

The example in config.html is names of months. But aren't...?

 Quote

cristiano

Anonymous
Hello friends.Nice to meet you back.I have some problem.
The example in config.html is names of months. But aren't those hardcoded within each language file's $LANG_MONTH? And pretty much every other locale setting (including timezone) is also hardcoded from within the very same locale settings.Can anyone help me?
________________________________
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Could you say what your problem is? And could a moderator split up the thread?
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Markus,

Our new friend seems to be a robot.

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: cordiste

Our new friend seems to be a robot


Whoops, good catch. I hadn't realized that he was simply copying the original question. Oh well, just ignore him then.

bye, Dirk
 Quote

Status: offline

kilerb

Forum User
Regular Poster
Registered: 03/19/08
Posts: 119
Hi, my site is on UTC and I'm on PST... Geeklog 1.5... I went into the config area and found the "Locale" section which is now set to "en_GB..." I clicked the question mark for info and went to the wiki area but still don't know what the different codes are. What would I change en_GB to so that I can get the site on PST? Is there a list somewhere?

Thanks!
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Isn't PST a timezone and not a locale?
 Quote

Status: offline

kilerb

Forum User
Regular Poster
Registered: 03/19/08
Posts: 119
I think you're right... Smile So how do I get this off UTC time? I figured they were related and controlled one another... Is the system still using the timezone hack that I saw someone posting about for Geeklog 1.3? I thought I read that it changed, but I just don't see where to change it.

Thanks
 Quote

Status: offline

kilerb

Forum User
Regular Poster
Registered: 03/19/08
Posts: 119
Actually, I'm on GL 1.6, not 1.5 if that makes a difference.

Thanks
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,

Did you try Configuration > Languages and Locale > Timezone Enable

then set your timezone (Etc/GMT-2 for exemple).

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

kilerb

Forum User
Regular Poster
Registered: 03/19/08
Posts: 119
Quote by: cordiste

Hello,

Did you try Configuration > Languages and Locale > Timezone Enable

then set your timezone (Etc/GMT-2 for exemple).

::Ben



I just checked it out... It is set for Etc/PST-8 which I believe is correct. I think the only place on my site that shows the time zone is my event manager plugin and that's where it says UTC... Could there be another spot that this finds the time zone?

Thanks
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Look, this is hijiacking this topic (which still awaits answers to the actual topic). Can a moderator split this off-topic discussion into its own topic (this is the second request now)?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: kilerb

I just checked it out... It is set for Etc/PST-8 which I believe is correct. I think the only place on my site that shows the time zone is my event manager plugin and that's where it says UTC... Could there be another spot that this finds the time zone?


So what is your problem now? Geeklog does use the timezone in some of the date stamps (e.g. the one in the welcome message - see just below the header on this site) - is it not correct?

The "timezone hack" that this config option is based on has some limitations (e.g. safe_mode in PHP must be off). I have some code for better timezone report (that requires PHP 5.1 or later). Someone remind me to add that for Geeklog 1.6.1 ...

bye, Dirk
 Quote

Status: offline

kilerb

Forum User
Regular Poster
Registered: 03/19/08
Posts: 119
Quote by: Dirk

Quote by: kilerb

I just checked it out... It is set for Etc/PST-8 which I believe is correct. I think the only place on my site that shows the time zone is my event manager plugin and that's where it says UTC... Could there be another spot that this finds the time zone?


So what is your problem now? Geeklog does use the timezone in some of the date stamps (e.g. the one in the welcome message - see just below the header on this site) - is it not correct?

The "timezone hack" that this config option is based on has some limitations (e.g. safe_mode in PHP must be off). I have some code for better timezone report (that requires PHP 5.1 or later). Someone remind me to add that for Geeklog 1.6.1 ...

bye, Dirk



Hi Dirk... I actually took the time off the main page because it said UTC... But I have the event manager for members to sign up for events, and that still shows UTC. I'd rather it not say any time zone at all, as everyone on this site is in CA. Here's a small screen capture of the event manager since you won't be able to see it without a login.. http://www.socalstandup.com/problem.gif
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Okay, so looks like it's not working for you. The original timezone hack discussion is here. The "hack" is built into Geeklog now, but maybe there's something in that discussion that can help you?

Otherwise, you'll have to wait for 1.6.1 (and I meant to write "timezone support" instead of "report" above, of course).

bye, Dirk (sitting in a hotel room in San Francisco, waiting for the rain to stop)
 Quote

Status: offline

kilerb

Forum User
Regular Poster
Registered: 03/19/08
Posts: 119
Hi Dirk, I've been messing with this thing A LOT...

I just changed the hack code on config.php and libcommon to this...

Text Formatted Code
$_CONF['timezone']  = 'America/Los_Angeles';

and
[code]if( !empty( $_CONF['timezone'] ) && !ini_get( 'safe_mode' ) &&
function_exists( 'putenv' )) {
putenv( 'TZ=' . $_CONF['timezone'] );
}
$_CONF['timezone'] = 'America/Los_Angeles';


Now it does not say UTC on my events, it now says GMT-6... Which might be Pacific time, I'm not even sure, but is there somewhere I can go in and just make it not show the time zone at all or make it say PST for everything? Pacific Standard Time is where all my users live... It's a CA niche site.

Thanks!
 Quote

Page navigation

All times are EST. The time is now 07:34 pm.

  • 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