Live posts show up as scheduled

Found a bug? Tell us!!
Post Reply
FishNiX
Regular
Posts: 40
Joined: Sun Sep 02, 2007 6:32 pm

Live posts show up as scheduled

Post by FishNiX »

Re-opening from GitHub Issues. This is definately 1.6 release running on our live server. I think it's been happening for a long time, but I am not the creator of content, so I don't see it. Should my serverOffset be +4? (server is UTC, localtime is UTC-4).

Running the 1.6 release (not updated from HEAD in github)

Published entries show up as "This Entry is not yet Published".

This happens for posts created and published immediately as well as posts saved as a Draft and published later.

I'm not sure if this happens for scheduled posts as well but I assume it does.

Perhaps this has something to do with a server time in UTC?

Post date: 2012-03-21 16:36
Local date: Wed Mar 21 19:03:31 EDT 2012
Server date: Wed Mar 21 23:03:55 UTC 2012

I don't know if this helps:

mysql> select id,timestamp,isdraft,last_modified from serendipity_entries where id=4656;
+------+------------+---------+---------------+
| id | timestamp | isdraft | last_modified |
+------+------------+---------+---------------+
| 4656 | 1332416040 | false | 1332370564 |
+------+------------+---------+---------------+
1 row in set (0.00 sec)

mysql> select * from serendipity_config where name like "%serverOffsetHours%";
+-------------------+-------+----------+
| name | value | authorid |
+-------------------+-------+----------+
| serverOffsetHours | -4 | 0 |
+-------------------+-------+----------+
1 row in set (0.00 sec)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Live posts show up as scheduled

Post by Timbalu »

FishNiX wrote:Should my serverOffset be +4? (server is UTC, localtime is UTC-4).
As Garvin pointed out: Give it a try. ;-)
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Live posts show up as scheduled

Post by garvinhicking »

Hi!

Yes, either 4 or -4, I'm always not sure which one. I badly fail at timezone conversions. :)

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/
Post Reply