subtract from events start time
-
Greetings,
Can someone help me figure out how to subtract from an hour from an events start time?
Basically I want to do something like this:
$start_time = (tribe_get_start_date(null, false, $time_format) – 1);but…you know..correctly.
Currently I am making it work but I don’t like the way I am doing it. I’m casting $start_time to a double and then subtracting an hour from it. It works ok when it’s on the hour but I’m worried about whats going to happen for events that start at say 7:30.
Ideally I would like to subtract an hour before all the internal tribe converting from time format to string format happens.
Thanks for any ideas on this!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘subtract from events start time’ is closed to new replies.