WordPress.org

Forums

[Plugin: Events Calendar] How do I make it recognise my time zone? (10 posts)

  1. ggj
    Member
    Posted 4 years ago #

    Does anybody know how to change the code so that the Events calendar recognises my time zone (ie UTC+12) as it is always giving yesterdays date? ie It dosen't recognise the timezone I have set for my wordpress application.

    http://wordpress.org/extend/plugins/events-calendar/

  2. mikey1
    Member
    Posted 4 years ago #

    Hi there, have you checked your timezone settings on the general settings page under timezone?
    hope it gets resolved.
    mike.

  3. ggj
    Member
    Posted 4 years ago #

    Hi, yup have checked that and my wordpress installation general settings is UTC+12 but somehow the events calendar plugin doesn't seem to pick it up. I am using it in the sidebar whether that makes any difference?

  4. nolacoop
    Member
    Posted 4 years ago #

    I am having the same issue, and haven't gotten an answer from here or from the Author's site. I'd really like to get this fixed. I love everything about the calendar, except the fact that the day switches at the wrong time because of the time zone being wrong. I have deactivated/reactivated, and even uninstalled/re-installed...no luck.

  5. nolacoop
    Member
    Posted 4 years ago #

    Okay, I think it's in the MySQL tables setup. Collation is set to latin1_swedish_ci and even though my server is set to the correct time zone, and my wordpress account, PLUS I've added the "timezone plugin" to the mix, my calendar is STILL changing days 7 hours too early! PLEASE PLEASE help us with this issue?

  6. nolacoop
    Member
    Posted 4 years ago #

    Went into php.ini file and changed the time zone myself. Seems to be working now. :)

  7. design_guru
    Member
    Posted 4 years ago #

    Hey Nolacoop,
    How did you solve the mystery of fixing it with php.ini? What folder do you place it in, and what do you have to put inside the php.ini? If you could give instructions, you would be my hero.

    Thanks!

  8. webmaster@stpeterslagrange.net
    Member
    Posted 4 years ago #

    ditto,
    I have been searching for the same answers and still none. I have looked at the code on the and like you design_guru I have done everything including emailing the creator and I am still left with the same questions. Surely someone knows the code that will change the time zone. In my case it's ics calendar plugin sidebar widget is showing MST and I need EST. 4 hours difference. I need to know where I can change the code to correct this issue and what code I should use. Please help, I really like this widget.

    Thank you.

  9. webmaster@stpeterslagrange.net
    Member
    Posted 4 years ago #

    correction about a three hour difference. But that's a mute point.

  10. karenmarreebiz
    Member
    Posted 4 years ago #

    I have found a solution for those who don't want to or can't play around in php.ini.

    It is not the most elegant solution but it worked for me. My situation is a WP site with timezone +1030 set correctly in settings general, but this plugin uses the web server timezone which is very different

    in the ec_widget.class.php and ec_js.class.php scripts, just after <?php

    insert this line of code

    date_default_timezone_set('xxx/yyy');

    use the exact values for xxx/yyy which relate to your timezone from this list http://us2.php.net/manual/en/timezones.php

    you *may* need to check this for changes due to daylight savings

    that fixes timezone for the large calendar display and the widget display which is as far as i looked, you may need to pop this code into other places also

    as always before playing with code make a copy & keep it in a safe place, just in case the wheels fall off!

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic