configuring the clock? (13)

1 Name: Anonymous 2005-06-08 17:00 ID:/ndjmqDv [Del]

hi, im running the webspace in an other country, so the server-clock does not show the right time on my posts, how can i correct this?
(time has to be set so +7 ...)

2 Name: !WAHa.06x36 2005-06-08 18:28 ID:3yuzM/gW [Del]

Well, this is the internet - that clock will never be right for more than a small amount of people. If you still want to change it, you'll need to hack the source a bit.

Open up or, find the post_stuff() function, and change this line (this is taken from, I think is the same):

my $date=make_date($time,DATE_STYLE);

to something like:

my $date=make_date($time+7*3600,DATE_STYLE);

Or whatever it should be to show the time you want.

3 Name: Anonymous 2005-06-09 03:49 ID:Heaven [Del]

Maybe the date on Kareha and Wakaba posts could specify the time zone (i.e. CET or EST), at least globally for the board?

4 Name: Anonymous 2005-06-09 05:22 ID:RbtB5kFg [Del]

>>2 Thank you!

5 Name: !WAHa.06x36 2005-06-09 05:56 ID:Heaven [Del]


I'm not sure if there's a way to find it out that works right across platforms... If anyone can prove me wrong on that, I'll see about adding it.

6 Name: Anonymous 2005-06-09 21:16 ID:Heaven [Del]

I guess the only way to have it correct for everyone is to specify how long ago each post was made. I'm sure that would cause quite a few other problems, though.

7 Name: Anonymous 2005-06-10 00:56 ID:Heaven [Del]

Huh? Just specify a certain timezone in the config files (GMT+X). How hard could that be?

8 Name: !WAHa.06x36 2005-06-10 04:08 ID:3yuzM/gW [Del]


Who are you talking to?

9 Name: 7 2005-06-10 05:33 ID:Heaven [Del]



10 Name: Anonymous : 2007-03-18 19:35 ID:bzp/cFu6 [Del]

The correct hack here is to manipulate the time right when the var is defined in:

# get a timestamp for future use
my $time=time()+2*3600 # +2*3600 as an example

If not, on Kareha in the "All Threads" list, and on Wakaba in the Manager, you'll still get the unhacked time, differentiating from the actual posts and could cause problems when you perform admin ops.

11 Name: !WAHa.06x36 : 2007-03-18 19:49 ID:Heaven [Del]

Er, thank you, but this thread is nearly two years old.

12 Name: Anonymous : 2007-03-18 19:57 ID:Heaven [Del]

lol, I checked everything in this board about how to configure localtime and found this thread only. Did not pay attention to how old it was.

13 Name: Anonymous : 2007-03-18 20:55 ID:Heaven [Del]

It's about time this timed a time time.

Name: Link:
Leave these fields empty (spam trap):
More options...