As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #3962508
PHP date_default_timezone_set function causes time mismatch in notifications
Open

Comments

  • Rob started the conversation

    I discovered another bug on my own. I was using the following PHP method to set the timezone globally on the wordpress "init" action: date_default_timezone_set('America/New_York');

    This caused our email and SMS notifications to display times that were 4 hours later than what was displayed on the website. So for example an event starting at 8:00 would display 12:00 in all notifications.

    It should be pretty easy for you to test this. I was able to fix once I moved the date_default_timezone_set method into smaller scopes so it wouldn't conflict with Amelia.

    However setting the default timezone in PHP should not cause a conflict with your codebase regardless. 

  •  1,718
    Uroš replied

    Hello Rob,

    Thank you for the update! I really appreciate you taking the time to investigate and identify the issue. It’s great to hear that you found a solution by adjusting the date_default_timezone_set method. I’ve passed this information on to our developers to look into further, as setting the default timezone in PHP should indeed not cause conflicts with Amelia’s functionality.

    We’ll keep an eye on this and see if any improvements can be made to prevent similar issues in the future.

    Thanks again for your valuable feedback!

    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables