WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Lifestream] Timezone offset? (4 posts)

  1. lluke
    Member
    Posted 4 years ago #

    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?

    Thanks,

    Luke.

    http://wordpress.org/extend/plugins/lifestream/

  2. silverpenpub
    Member
    Posted 4 years ago #

    I'm having this problem as well. Anyone have any ideas how to set the timezone or have it pick it up from WP?

  3. mickmel
    Member
    Posted 3 years ago #

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

  4. mickmel
    Member
    Posted 3 years ago #

    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/main.inc.php

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags