PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old October 4th, 2003, 07:39 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Changing the Date/Time

When I post a new story, it says that I posted it on an incorrect date.

(etc, if I post it on Saturday, it says I posted it on a Sunday)...

Anyone know how to change this?

Reply With Quote
  #2  
Old October 4th, 2003, 09:17 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Changing the Date/Time

I would assume this is a time zone issue meaning that you are in one time zone and your server is in a time zone that is ahead of you...or the time on the server is incorrect. You would need to be more specific as to how and what you use to post your stories but the solution is to modify the script that inserts your stories into your db (or file if you are using a file based system) so that it adjusts the date and time that the story is posted before recording it. for example

the following script would produce a date and time that is 1 hour behind the time your server is set to

php Code:
Original - php Code
  1.  
  2. <?
  3. echo date("m/d/Y h:m:s A",time()- (60 *60));
  4. ?>


For more info on the date() or time() functions, consult the PHP manual...

Hope that makes sense..

Reply With Quote
  #3  
Old October 4th, 2003, 09:25 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Changing the Date/Time

This is pertaining to PHPnuke. I kind of think there is a way to set the time zone in the configuration/preferences section, however I can't seem to find it.

Any idea where I could go to get some help with this?

Thanks for all your help,
William

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Changing the Date/Time


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway