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 ...)
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 wakaba.pl
or kareha.pl
, find the post_stuff()
function, and change this line (this is taken from kareha.pl
, I think wakaba.pl
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.
Maybe the date on Kareha and Wakaba posts could specify the time zone (i.e. CET or EST), at least globally for the board?
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.
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.
Huh? Just specify a certain timezone in the config files (GMT+X). How hard could that be?
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.
Er, thank you, but this thread is nearly two years old.