You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 169 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - How do I change the time for my PHPNUke 6.5 site? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
defendtherealm
Premium
Premium


Joined: Jun 01, 2003
Posts: 144

Location: Eastbourne, United Kingdom

PostPosted: Sun Jun 01, 2003 10:37 pm Reply with quoteBack to top

I want to change it to British Summer Time (BST).

I know the Forums is different and set by the user, but my articles are showing MDT time zone along with my Shoutbox.

Thanks.
Find all posts by defendtherealmView user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Mon Jun 02, 2003 10:23 am Reply with quoteBack to top

set the locale info in the preferences setup to en_GB and en_gb respectively (the preferences in hte nuke admin panel - there are 2 places to change it)

AI
Find all posts by ArtificialIntelView user's profileSend private message
jimmyjimjim
Lieutenant
Lieutenant


Joined: Jan 23, 2003
Posts: 258

Location: USA

PostPosted: Mon Jun 02, 2003 7:50 pm Reply with quoteBack to top

What format do you use to change this?

Locale Time Format: ___________

Is there a list? Or perhaps a hack that makes this a dropdown menu?
Find all posts by jimmyjimjimView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Mon Jun 02, 2003 8:08 pm Reply with quoteBack to top

Haven't been able to find one, but read this carefully as it has some more information http://us2.php.net/manual/en/function.setlocale.php

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
jimmyjimjim
Lieutenant
Lieutenant


Joined: Jan 23, 2003
Posts: 258

Location: USA

PostPosted: Mon Jun 02, 2003 8:16 pm Reply with quoteBack to top

Thank you! Smile
Find all posts by jimmyjimjimView user's profileSend private message
defendtherealm
Premium
Premium


Joined: Jun 01, 2003
Posts: 144

Location: Eastbourne, United Kingdom

PostPosted: Tue Jun 03, 2003 9:26 am Reply with quoteBack to top

ArtificialIntel wrote:
set the locale info in the preferences setup to en_GB and en_gb respectively (the preferences in hte nuke admin panel - there are 2 places to change it)

AI


Thanks!
Find all posts by defendtherealmView user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
defendtherealm
Premium
Premium


Joined: Jun 01, 2003
Posts: 144

Location: Eastbourne, United Kingdom

PostPosted: Tue Jun 03, 2003 9:35 am Reply with quoteBack to top

ArtificialIntel wrote:
set the locale info in the preferences setup to en_GB and en_gb respectively (the preferences in hte nuke admin panel - there are 2 places to change it)

AI


Done that. It not worky. Crying or Very sad
Find all posts by defendtherealmView user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Tue Jun 03, 2003 9:58 am Reply with quoteBack to top

to alter to time for posted news.

Open up mainfile.php and change the line:

Code:

Code:
    $datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));



in the function FormatTimeStamp to:

Code:

Code:
    $datetime = gmstrftime(""._DATESTRING."", gmmktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1])+36000);




replace the +36000 with your time offset from gmt.

Hope this helps.
You may also what to find the line '_DATESTRING' in the lang-english.php and change to %Z to your timezone name.

Posted by SShowron over at http://www.nukemods.com

mikem

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
defendtherealm
Premium
Premium


Joined: Jun 01, 2003
Posts: 144

Location: Eastbourne, United Kingdom

PostPosted: Tue Jun 03, 2003 12:07 pm Reply with quoteBack to top

Thanks Mike. I don't mind so much about old posts. Its things like my shoutbox that get on my nerves. My site specifically has LONDON in it's name so it's real embarassing to have a shoutbox that it is way out!!!!!
Find all posts by defendtherealmView user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
defendtherealm
Premium
Premium


Joined: Jun 01, 2003
Posts: 144

Location: Eastbourne, United Kingdom

PostPosted: Tue Jun 03, 2003 12:37 pm Reply with quoteBack to top

mikem wrote:
to alter to time for posted news.

Open up mainfile.php and change the line:

Code:

Code:
    $datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));



in the function FormatTimeStamp to:

Code:

Code:
    $datetime = gmstrftime(""._DATESTRING."", gmmktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1])+36000);




replace the +36000 with your time offset from gmt.

Hope this helps.
You may also what to find the line '_DATESTRING' in the lang-english.php and change to %Z to your timezone name.

Posted by SShowron over at http://www.nukemods.com

mikem


Lets get this right. You saying that I should replace

define("_DATESTRING","%A, %B %d @ %T %Z");

with

define("_DATESTRING","%A, %B %d @ %T en_gb");

???????????
Find all posts by defendtherealmView user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Tue Jun 03, 2003 12:45 pm Reply with quoteBack to top

Yes I think that is right, but I am not sure since I am not the user who posted that code originally.

mikem

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
defendtherealm
Premium
Premium


Joined: Jun 01, 2003
Posts: 144

Location: Eastbourne, United Kingdom

PostPosted: Tue Jun 03, 2003 3:34 pm Reply with quoteBack to top

All that does is just change what is printed as the timezone. So all it will do is change from "MDT" to "BST" after the time. But the actual time is still wrong.

Help!!!!!!!!!!
Find all posts by defendtherealmView user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
defendtherealm
Premium
Premium


Joined: Jun 01, 2003
Posts: 144

Location: Eastbourne, United Kingdom

PostPosted: Sat Jun 07, 2003 5:08 pm Reply with quoteBack to top

Help!!! This is still a problem for me. It's real embaressing as everything really works well on my sites, but I can't change the friggin time.

I want to sell preinstalled PHPNuke as part of a web hosting business I am setting up and I can't even think about doing it until I have this problem licked!

I have even tried a British community page. They say en_uk - That doesn't do it for me either.

I have installed PHPNuke completly fresh and then tried both solutions but it just won't change the system time, even after posting test posts.

HELP!!!
Find all posts by defendtherealmView user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
Maniax
Nuke Soldier
Nuke Soldier


Joined: Apr 26, 2003
Posts: 14


PostPosted: Sat Jun 07, 2003 6:03 pm Reply with quoteBack to top

Hmmm, I thought that nuke got the current time from the host systems date/time/timezone setup. It may be something you have to set up on the server system and not so much nuke config itself.

Did you check your regional settings and those of the server?
Find all posts by ManiaxView user's profileSend private message
defendtherealm
Premium
Premium


Joined: Jun 01, 2003
Posts: 144

Location: Eastbourne, United Kingdom

PostPosted: Sat Jun 07, 2003 6:28 pm Reply with quoteBack to top

Maniax wrote:
Hmmm, I thought that nuke got the current time from the host systems date/time/timezone setup. It may be something you have to set up on the server system and not so much nuke config itself.

Did you check your regional settings and those of the server?


Ah ha....Now this is interesting......I never did change the time zone settings on the server, but the server is not British, it's American. It has to be American because my site is about free speech, something when don't have as a technical sense in the UK.....

I will talk to my hosting company.

Cheers.
Find all posts by defendtherealmView user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.118 Seconds - 589 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::