Home › Forums › Ticket Products › Event Tickets Plus › Bug in date format?
- This topic has 6 replies, 2 voices, and was last updated 11 years, 3 months ago by Barry.
-
AuthorPosts
-
December 3, 2012 at 5:02 am #28829DanieleParticipant
Goodmorning everyone.
I have just bought and installed WooTickets, and it seems i encountered a bug. I set up an event from 15th January 2013 21.00 to 16th January 2013 02.00: the tickets form doesn’t show up, there’s no HTML output (the page continues to load correctly).I checked inside tickets.php: products associated to tickets are loaded correctly, but then the function strtotime( $ticket->end_date . $gmt_offset ) fails. I live in Italy, so my dates are in DD/MM/YYYY format: i guess this is the reason. Further studying lead me to this:
echo $ticket->end_date . $gmt_offset; // 16/01/2013 02:00 +0
echo var_dump(strtotime( $ticket->end_date . $gmt_offset )); //returns bool(false)
This happens because the slash in the date makes PHP think of an american date, and obviously “month 16” doesn’t exists. If i change “/” to “-“, then everything works fine.
I hope you can fix this soon, if you need further info please write me back. Thank you!!
D.December 3, 2012 at 9:09 am #28840BarryMemberHi Daniele – interesting problem: thanks for taking the time to investigate and for summarizing it so concisely. I’m going to pass this up to one of the developers for further action.
Please bear with me and I’ll try to update you again as soon as I can.
December 4, 2012 at 7:59 am #28914BarryMemberJust to update you Daniele – we have a possible fix. I’m just going to test it locally then, if all goes well, I may ask you to patch one of your own files as a final test.
Will get back to you soonest – thanks for your patience so far 🙂
December 11, 2012 at 10:35 am #29240BarryMemberSorry for the delay Daniele – but can you back up and move your current WooTickets plugin outside of the wp-content/plugins directory and put this version in place instead?
It seems to resolve the problem for us, but it would be great if you could give it a real world test 🙂
December 12, 2012 at 9:49 am #29308DanieleParticipantHi Barry! Ok i will try it tonight / tomorrow at max, then i’ll tell you if it works. Thank you! Is that the only thing changed in this version?
December 12, 2012 at 11:50 am #29322BarryMemberI believe so 🙂
January 9, 2013 at 6:47 am #30496BarryMemberHi Daniele, I’m guessing you’re all sorted here but just let me know if not.
-
AuthorPosts
- The topic ‘Bug in date format?’ is closed to new replies.