I've been working around the lack of timezone functionality but just manually changing the time each time I post to my blog. I'm around +13 hrs ahead of my server so it's not very difficult to manually change the posting time.
I upgraded to 0.7rc-1 and it no longer displays future entries. Is there somewhere I can change to allow it to display future entries?
time again but re: 0.7x and new entries in future time
-
- Regular
- Posts: 62
- Joined: Thu Oct 07, 2004 3:16 pm
-
- Regular
- Posts: 62
- Joined: Thu Oct 07, 2004 3:16 pm
I can suggest a dirty hack, I haven't tried it myself, but it could be a start.
The entries are fetched using serendity_fetchEntries(...) in serendipity_functions.inc.php.
It seems to be the time limiting code is in line 710 and 712. By adding a day (or 13 hours in your case) to time(), you can change the sql query to e.timestamp <= 13 hours ahead instead. What I mean is
become
This should add 14 hours to time(). If you go through the functions in the file, you might be able to change the display time on the blog as well.
The entries are fetched using serendity_fetchEntries(...) in serendipity_functions.inc.php.
It seems to be the time limiting code is in line 710 and 712. By adding a day (or 13 hours in your case) to time(), you can change the sql query to e.timestamp <= 13 hours ahead instead. What I mean is
Code: Select all
$and .= " AND e.timestamp <= '" . time() . "'";
$and = "WHERE e.timestamp <= '" . time() . "'";
Code: Select all
$and .= " AND e.timestamp <= '" . time() + 60*60*14 . "'";
$and = "WHERE e.timestamp <= '" . time() + 60*60*14 . "'";
Last edited by Little Hamster on Mon Nov 01, 2004 10:36 pm, edited 1 time in total.