Welcome to Geeklog, Anonymous Saturday, June 15 2024 @ 06:43 am EDT

Geeklog Forums

Timehack when submitting stories


Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
I used the timehack to set -8 hours from the server's.

For example, when it's 18:00 here, it's 10:00 at the server's.

It does work fine for me, but so fine that when I submit stories, it behaves as if the current time is the local time. So in this example, it displays 18:00.

So where's the problem, you ask?

Well, as soon as I press "submit", it does set the story's time to 18:00...the server's 18:00!
Which means the story will not be posted live, but only be posted 8 hours later...in 2am here (which will look as if I'm posting in the middle of the night...).

I want to post live. That's why I always have to calculate -8 hours and set it to that time manually.
In this example, I'd set it to 10:00 and only then it'd be posted live (in my 18:00).

Now, I know it's not such a big calculation..but to do it every time I want to post something is annoying, when I just know it should have been so smooth...

All in all, isn't there a way to force new submissions to be set in server time and not via the timehack?

Thanks!
 Quote

Status: offline

geKow

Forum User
Full Member
Registered: 01/12/03
Posts: 445
I assume you're reffering to the timezone hack thread?

Did you change the public_htmladminstory.php?
somewhere around line 979 you need to replace "$date" by "FROM_UNIXTIME($unixdate)"

geKow
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
I haven't noticed any change.

I've changed

DB_save($_TABLES
['stories'],'sid,uid,tid,title,introtext,bodytext,hits,date,com
ments,related,featured,commentcode,statuscode,postmod
e,frontpage,draft_flag,numemails,owner_id,group_id,per
m_owner,perm_group,perm_members,perm_anon,show_
topic_icon',"$sid,$uid,'$tid','$title','$introtext','$bodytext',$
hits,'$date','$comments','$related',$featured,'$c
ommentcode','$statuscode','$postmode','$frontpage',$draf
t_flag,$numemails,$owner_id,$group_id,$perm_owner,$p
erm_group,$perm_members,$perm_anon,$show_topic_ic
on", $return_to);

into

DB_save($_TABLES
['stories'],'sid,uid,tid,title,introtext,bodytext,hits,date,com
ments,related,featured,commentcode,statuscode,postmod
e,frontpage,draft_flag,numemails,owner_id,group_id,per
m_owner,perm_group,perm_members,perm_anon,show_
topic_icon',"$sid,$uid,'$tid','$title','$introtext','$bodytext',$
hits,'FROM_UNIXTIME($unixdate)
','$comments','$related',$featured,'$commentcode','
$statuscode','$postmode','$frontpage',$draft_flag,$nume
mails,$owner_id,$group_id,$perm_owner,$perm_group,$
perm_members,$perm_anon,$show_topic_icon",
$return_to);
 Quote

Status: offline

geKow

Forum User
Full Member
Registered: 01/12/03
Posts: 445
could you please try ,FROM_UNIXTIME($unixdate), without the single quotes?

geKow
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Still nothing.
 Quote

Aaron Paulley

Anonymous
Personally, I think that it is stupid that Geeklog hasn't been made timezone aware yet and we dont have to hack its code for this crap.
 Quote

All times are EDT. The time is now 06:43 am.

  • 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