| Author |
Message |
defendtherealm
Premium


Joined: Jun 01, 2003
Posts: 144
Location: Eastbourne, United Kingdom
|
Posted:
Sun Jun 01, 2003 10:37 pm |
  |
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. |
|
|
      |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Mon Jun 02, 2003 10:23 am |
  |
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 |
|
|
   |
 |
jimmyjimjim
Lieutenant


Joined: Jan 23, 2003
Posts: 258
Location: USA
|
Posted:
Mon Jun 02, 2003 7:50 pm |
  |
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? |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Mon Jun 02, 2003 8:08 pm |
  |
|
    |
 |
jimmyjimjim
Lieutenant


Joined: Jan 23, 2003
Posts: 258
Location: USA
|
Posted:
Mon Jun 02, 2003 8:16 pm |
  |
Thank you!  |
|
|
   |
 |
defendtherealm
Premium


Joined: Jun 01, 2003
Posts: 144
Location: Eastbourne, United Kingdom
|
Posted:
Tue Jun 03, 2003 9:26 am |
  |
| 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! |
|
|
      |
 |
defendtherealm
Premium


Joined: Jun 01, 2003
Posts: 144
Location: Eastbourne, United Kingdom
|
Posted:
Tue Jun 03, 2003 9:35 am |
  |
| 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.  |
|
|
      |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Tue Jun 03, 2003 9:58 am |
  |
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 |
|
   |
 |
defendtherealm
Premium


Joined: Jun 01, 2003
Posts: 144
Location: Eastbourne, United Kingdom
|
Posted:
Tue Jun 03, 2003 12:07 pm |
  |
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!!!!! |
|
|
      |
 |
defendtherealm
Premium


Joined: Jun 01, 2003
Posts: 144
Location: Eastbourne, United Kingdom
|
Posted:
Tue Jun 03, 2003 12:37 pm |
  |
| 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");
??????????? |
|
|
      |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Tue Jun 03, 2003 12:45 pm |
  |
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 |
|
   |
 |
defendtherealm
Premium


Joined: Jun 01, 2003
Posts: 144
Location: Eastbourne, United Kingdom
|
Posted:
Tue Jun 03, 2003 3:34 pm |
  |
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!!!!!!!!!! |
|
|
      |
 |
defendtherealm
Premium


Joined: Jun 01, 2003
Posts: 144
Location: Eastbourne, United Kingdom
|
Posted:
Sat Jun 07, 2003 5:08 pm |
  |
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!!! |
|
|
      |
 |
Maniax
Nuke Soldier


Joined: Apr 26, 2003
Posts: 14
|
Posted:
Sat Jun 07, 2003 6:03 pm |
  |
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? |
|
|
   |
 |
defendtherealm
Premium


Joined: Jun 01, 2003
Posts: 144
Location: Eastbourne, United Kingdom
|
Posted:
Sat Jun 07, 2003 6:28 pm |
  |
| 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. |
|
|
      |
 |
|
|