• Resolved gsmobina

    (@gsmobina)


    My Developer was able to display the time zone of the user’s browser to all the views in calendar list, day, month and recurring views.

    However, we have issue with countries day light savings. For eg: `EDT is GMT -4, whereas AEST is GMT +10. In other words, EDT is 14 hours behind AEST. So if the event is at 9.30 am on August 10th and should be shown as 7.30 pm on August 9th not August 10th.

    The following link shows how to log into chrome at a different timezone`

    So we need to filter some data. For that we need data 24 hours before and 24 hours after the given range. For example, in Day view, we need 24 hours records before the start date and time and 24 hours after the end date and time. We can do the filtering after we get the data. Can you please give us the list of file names and where to change the value of the date range in all the files, we can get the data and do the filtering.

    Also where are these information saved in the database table?

    This is an urgent request.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Abz

    (@abzlevelup)

    Hi @gsmobina, dealing with timezones and altering them is quite tricky. We highly recommend using a location-based timezone, and we have an article here that should help you deal with DST/Daylight Saving Time → https://theeventscalendar.com/knowledgebase/k/how-daylight-saving-time-affects-events/.

    In regard to the database table/fields and files for you to filter out the data, I would reach out to our team and check with them which associated files you need to alter the date range.

    I’d get back to you when I hear from the team. Have a great day.

    Best,
    Abz

    Thread Starter gsmobina

    (@gsmobina)

    Thank you for your response. awaiting for your reply on database fields.

    Plugin Support Abz

    (@abzlevelup)

    Hi @gsmobina, appreciate your patience here. One of our devs responded saying:

    Event dates and timezones are stored as post meta per event. https://share.getcloudapp.com/kpuW9gYD

    Let me know if this helps.

    Best,
    Abz

    Thread Starter gsmobina

    (@gsmobina)

    Thank you for your response.

    We need to filter some records in the view using javascript. For that we need data/records 24 hours before the given date and 24 hours after. For example, in Day view, we need to populate 24 hours records before the start date and time and 24 hours after the end date and time. If the user selects 22-AUG-2022, The view should populate with all the records between 21-AUG-2022 00:00 to 23-AUG-2022 23:59. We can do the filtering after the data or records are populated on the page. We need this information in the following views: Day view, Month view, List view, Recurring view and Event view -> Related Events section. Can you please give us the list of file names and where to change the parameters of the date range in all the files? We can do the filtering after views are populated.

    Plugin Support Abz

    (@abzlevelup)

    Hi @gsmobina, no worries. I reached back to our devs:

    The main View files are in src/Tribe/Views/V2. If they want to change the query the view uses, they want to filter the repository args for the view.

    They can use tribe_events_views_v2_view_repository_args or tribe_events_views_v2_view_{$view->slug}_repository_args

    We suggest you try this on a dev/staging site — what you’re trying to accomplish here might break things, for example, the views.

    Best,
    Abz

    Plugin Support Abz

    (@abzlevelup)

    Hey @gsmobina, this thread has been inactive for a while, so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up, and we’d be happy to help.

    Cheers,
    Abz

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Calendar Timezone Modifications’ is closed to new replies.