Home › Forums › Calendar Products › Events Calendar PRO › Event time off by a few minutes
- This topic has 6 replies, 3 voices, and was last updated 12 years ago by Rob.
-
AuthorPosts
-
April 16, 2012 at 11:05 pm #17975LianaMember
Whenever I post an event starting at 9:00 am for example and echo it with $event->EventStartDate it seems to add random minutes to it (ie. 9:07am) in the frontend.
Cannot seem to work out why this is happening (after saving event, logging out, logging in then viewing it shows as the right time in the backend but still not in the frontend, weird?).
Can post more of my code if required.
The website for reference is: http://www.australiandesignreview.com.auApril 16, 2012 at 11:08 pm #17976LianaMemberExample here: http://www.australiandesignreview.com/event/the-urban-age-risk-and-renewal
Start and end times are 4 mins off for no reason?
April 17, 2012 at 9:10 am #17990RobMemberHey Liana. Thanks for the note here – we can take a look and should be able to get this resolved for you, but mind posting the code you’re using? Ideally in a pastie.org link so we can view it in full?
We’ll do what we can to assist from there. Thanks!
April 17, 2012 at 5:23 pm #18016LianaMemberThe full codeblock can be found at: http://pastebin.com/KZGEqV3J
The issue seems to be when I use EventStartDate));?> it will add random minutes to the time, I need the time to display in AM / PM format instead of 24 hour format (also without seconds), is there any other way to query this?
(This may just be a silly developer error on my end, I have been known to make a few)April 17, 2012 at 5:45 pm #18018LianaMemberDisregard this, my error… was passing through d/m/Y h:mA instead of d/m/Y h:iA, lock and delete
April 17, 2012 at 5:51 pm #18019HenryMemberTry using this
April 23, 2012 at 6:29 pm #18222RobMemberHey Liana, so it sounds like you’re all set as per your last note…am I wrong there? If the issue persists, does Henry’s most recent suggestion get you where you need to be?
-
AuthorPosts
- The topic ‘Event time off by a few minutes’ is closed to new replies.