James

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Getting tribe_get_events() to work with timezones #1044827
    James
    Participant

    Any help with this please?

    in reply to: getting tribe_get_events() to work with timezones #1044122
    James
    Participant

    Wrong thread, reposted in the events calendar pro forum. Please delete this thread.

    James
    Participant

    Thanks Brook I’ve gotten it to work.

    Your explanation that tribe_get_events() presupposes the current event was what I needed. This should be documented somewhere! Saying that it retrieves upcoming events, without that being precisely the case, can be misleading and lead people to believe the plugin isn’t working correctly, when it is.

    Thanks once again!

    James
    Participant

    Okay so, the most typical use case lists upcoming and current events? If that use case works 100% as expected, then maybe the best case scenario is to talk with our customer and nudge the expectations a bit.

    To solve the use case as I initially outlined, how would I exclude events by moving my start_date after their end? Can this be done without SQL?

    Thank you for all your help!

    James
    Participant

    I find it hard to imagine this is a rare use case. Maybe I’m missing something very obvious?

    My only goal is simply to output a list of upcoming events. I take the start_date as strtotime(now), and retrieve everything from that on.

    How can this be a rare use case?

    Can you suggest some easy way you’d implement this usecase without writing heavy SQL? I’ve purchased this plugin to perform this very simple use case.

    James
    Participant

    Thanks Brook!

    What would you say is the best way to precisely limit events which the loop picks up? Should I add an end_date which is 5 minutes after start_date?

    In other words going back to my example,

    15-11-13 21:05
    15-11-13 21:00

    How do I run the loop which starts at 21:05, and doesn’t pick up an event starting at 21:00?

Viewing 6 posts - 1 through 6 (of 6 total)