Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 09:56 pm EST

Geeklog Forums

Geeklog shows incorrect time.


Status: offline

TheHeggy

Forum User
Newbie
Registered: 07/20/04
Posts: 2
blank
My Geeklog has been showing the incorrect time since installation. You can see it on my website at theheggy.com.

Basically if it's "

Wed July 21 11:26PM",

the website shows that it is

"Thu July 22, 11:22AM". I'm stumped.
 Quote

Status: offline

hidden

Forum User
Chatty
Registered: 11/13/03
Posts: 51
Quote by TheHeggy: My Geeklog has been showing the incorrect time since installation. You can see it on my website at theheggy.com.

Basically if it's "

Wed July 21 11:26PM",

the website shows that it is

"Thu July 22, 11:22AM". I'm stumped.


read the faqs.

hope that helps.
we are just shadows of our hidden identities
 Quote

TheHeggy

Anonymous
Even if I used that, it wouldn't stop it from being 12 hours and 3 minutes off, would it?
 Quote

Status: offline

comicbookguy

Forum User
Regular Poster
Registered: 05/15/04
Posts: 97
Geeklog displays your server's date and time. The only way to change that is with one of the hacks.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by TheHeggy: Even if I used that, it wouldn't stop it from being 12 hours and 3 minutes off, would it?

As the others have already pointed out, this is the server's time that is displayed there. If you think that time is wrong, talk to your hosting service and ask them to fix it (assuming they are in the same timezone as you are).

bye, Dirk
 Quote

TheHeggy

Anonymous
No problem then

For a minute I thought it was for something else. I'll try it out. Thanks guys.
 Quote

Status: offline

caltman

Forum User
Junior
Registered: 07/12/04
Posts: 25
I did the following (I am in MDT and my server is 1 hour ahead of me CDT)

Make the following adjustments.

in config.php add the following

$_CONF['timezone'] = 'America/Denver';

in the lib-custom.php file in system directory add the following at the bottom

if ( !empty($_CONF['timezone'])
&& !ini_get("safe_mode")) {
putenv("TZ=".$_CONF['timezone']);
}

in story.php inside the admin folder at the bottom of the file line 884 add

MDT +1 hours

so the the whole line looks like

$unixdate = strtotime("$publish_month/$publish_day/$publish_year $publish_hour:$publish_minute:$publish_second MDT +1 hours");

That worked for me. One other proble I had was that the PHP server was returning the *wrong* time. I contacted tech support and they fixed it although they didn't say why it was wrong.

Good luck,
Carter who is new to Geeklog but is already trying to write a plugin.
 Quote

All times are EST. The time is now 09:56 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