Server time
Server time
Hi everybody,
it looks like the calendar of my blog lives in yesterday.
My server time is 7 hours less than the place where i live, so i set up +7 in the configuration of the blog (it tells me actual time is 4:00am when here is 11:00am, so i write +7).
But the calendar marks as today the day before today. Today is 28 (already for 11:43am hours) but for my blog is still 27, even in the server is already 4:43am)
The blog is www.casarusia.com. Maybe in some minutes or hours it will show 28 as today, i dont know when it decides to change.
Someone has had the same problem? I updated about 3 weeks ago to the last release of Serendipity (running Serendipity 0.9.1 and PHP 4.3.10).
Best regards,
it looks like the calendar of my blog lives in yesterday.
My server time is 7 hours less than the place where i live, so i set up +7 in the configuration of the blog (it tells me actual time is 4:00am when here is 11:00am, so i write +7).
But the calendar marks as today the day before today. Today is 28 (already for 11:43am hours) but for my blog is still 27, even in the server is already 4:43am)
The blog is www.casarusia.com. Maybe in some minutes or hours it will show 28 as today, i dont know when it decides to change.
Someone has had the same problem? I updated about 3 weeks ago to the last release of Serendipity (running Serendipity 0.9.1 and PHP 4.3.10).
Best regards,
pano
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Server time
Did you try to just enter "7" as server offset, and not "+7"?
Best regards,
Garvin
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Okay, I'll have a look at this more detailed in the next days.
Is it only the calendar that's behaving wrong? Or also the entry time itself?
Regards,
Garvin
Is it only the calendar that's behaving wrong? Or also the entry time itself?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
I think I've found that bug.
However it was in since Serendipity 0.8, so I don't think it every worked properly?
Can you please try this:
1. Open your include/plugins_internal.inc.php file
2. Search for this:
3. Replace that with:
This will turn the server timezones to not the double of 7, but the right value.
Please tell me if that works out for you, so that I can commit it to the official trunk.
Regards,
Garvin
However it was in since Serendipity 0.8, so I don't think it every worked properly?
Can you please try this:
1. Open your include/plugins_internal.inc.php file
2. Search for this:
Code: Select all
$now = serendipity_serverOffsetHour(time(), true);
Code: Select all
$now = serendipity_serverOffsetHour(time());
Please tell me if that works out for you, so that I can commit it to the official trunk.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Forgive me for pulling this thread back up again.
I followed through the corrections on v0.9.1. I think there are two places to correct? one for gregorian, the other for jalili. After correcting both, the calendar displays the date accurately; but the date of the post itself is still displayed as yesterday. (My timezone offset is 13.)
I followed through the corrections on v0.9.1. I think there are two places to correct? one for gregorian, the other for jalili. After correcting both, the calendar displays the date accurately; but the date of the post itself is still displayed as yesterday. (My timezone offset is 13.)
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Maybe you could try to use the 1.0-beta2 version instead of patching up your 0.9?
Regards,
Garvin
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Regular
- Posts: 36
- Joined: Sun Feb 12, 2006 9:27 pm
- Location: London
- Contact:
Hello everyone,
And so I've resurrected this thread again...
I just moved to a new hosting service (pair.com Pittsburgh USA) from namesco/simply.com (UK) - what a difference in performance, price, features. Should have done it months ago.
Anyway, I spent a tense couple of days transfering the site and its myriad modifications, etc. I also took the opportunity to upgrade from 1.0.9 beta (or something like that) to 1.0.4
Everythings works better than before.... except the dates in the article/entry listings (in serendipity_entryFooter) are a day behind !
The new server is only 5 hours behind me (I'm in London). I tried putting in '5' as the offset, but it didn't make any difference, so I left it blank to the server default.
Help ?
And so I've resurrected this thread again...
I just moved to a new hosting service (pair.com Pittsburgh USA) from namesco/simply.com (UK) - what a difference in performance, price, features. Should have done it months ago.
Anyway, I spent a tense couple of days transfering the site and its myriad modifications, etc. I also took the opportunity to upgrade from 1.0.9 beta (or something like that) to 1.0.4
Everythings works better than before.... except the dates in the article/entry listings (in serendipity_entryFooter) are a day behind !
The new server is only 5 hours behind me (I'm in London). I tried putting in '5' as the offset, but it didn't make any difference, so I left it blank to the server default.
Help ?
-
- Regular
- Posts: 36
- Joined: Sun Feb 12, 2006 9:27 pm
- Location: London
- Contact: