Thread Starter
jnnlsn
(@jnnlsn)
When I echo out the time and date through php, The first item’s date is always ahead by one day, and the time is always set to 12:30am, regardless of what the event time is.
Screenshot:
View post on imgur.com
Hi @jnnlsn,
We have reviewed your issue . We are not facing this issue at our end . So , your problem can be related to your time zone setting . I would recommend you to follow post
https://ww.wp.xz.cn/support/topic/how-to-set-the-time-zone/ to set your time zone .
Also you can update to newer version.
Do let me know if you still faces any issues.
Thanks
Thread Starter
jnnlsn
(@jnnlsn)
Hi @coolcoders
I have double checked that the wordpress, google calendar, and plugin timezones are all the same – and tried manually overriding the timezone in time.php
The issue is still occuring, this doesn’t seem to be an issue with the time zone settings, since every date and time is correct except for the large grid view date for the first item in the list
Hi @jnnlsn ,
Upon visiting your given screenshot i found the upper widget that is listing the date is modified . I can notice a time is showing under the date . So , we cannot guarantee the issue occurring is coming from plugin or from the custom changes you have made.
But yes before listing the date you can mention
date_default_timezone_set($event_timezone);
before calling the date . it should equalize your date for both sections.
We also recommend you to try the actual version to check if the issue occurs or not.
Thanks
Thread Starter
jnnlsn
(@jnnlsn)
@coolcoders
In the above screenshot, I only echoed out the time.php function to prove that the first event was defaulting to 12:30am for the following day, which affected the top date being one day late. Otherwise the plugin was un-modified and was up to date along with WordPress.
Re-specifying the date default timezone directly above the php date include function within grid.php fixed my issue – just a heads up, you may want to add this to the next release.
Thanks for the help!