Welcome to Geeklog, Anonymous Tuesday, December 10 2024 @ 07:03 pm EST
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!
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!
15
9
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
Did you change the public_htmladminstory.php?
somewhere around line 979 you need to replace "$date" by "FROM_UNIXTIME($unixdate)"
geKow
12
10
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);
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);
9
17
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.
13
9
Quote
All times are EST. The time is now 07:03 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