Support » Plugins » [Plugin: Lifestream] Timezone offset?

  • Hi, I’ve got lifestream installed but it’s display of posts from “Today” and “Yesterday” are incorrect because it doesn’t seem to be handling that I live in Australia (UTC+10).

    Is there a way to turn dates off altogether or at least adjust the titles for the correct timezone?



Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m having this problem as well. Anyone have any ideas how to set the timezone or have it pick it up from WP?

    Same problem for me too. Digging for an answer, but coming up empty so far.

    Solved it manually. Mine was running 4 hours ahead, so I had to subtract 14400 seconds (4 hours x 60 minutes x 60 seconds).

    I don’t actually store items differently in the database, I just have it show correctly on my site.

    In the file wp-content/plugins/lifestream/themes/default/

    Line 5, change to:
    $today = date(‘m d Y’, time()-14400);

    Line 6, add 14400 (or whatever your number is) to the number at the end, so it looks something like this:
    $yesterday = date(‘m d Y’, time()-100800);

    After line 18, insert this new line:
    $timestamp = $timestamp – 14400;

    In line 42, look for:
    ($lifestream->get_option(‘hour_format’), $event->timestamp)
    and have it subtract your 14400 from the end, so it looks like this:
    ($lifestream->get_option(‘hour_format’), $event->timestamp-14400)

    That should do it!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Lifestream] Timezone offset?’ is closed to new replies.