sugi / jquery-gcal-flow

jQuery Google Calendar Flow plugin
62 stars 28 forks source link

Date and Time formatting #8

Closed aketchm closed 11 years ago

aketchm commented 11 years ago

I am no jquery guru by any means but I can do a few things and I kind of understand this plugin, maybe i missed something, but I cant find a whole lot of documentation on the different function options. Only very few examples exist... anyway.

I have poked around here and changed up my function for date formatting, which changes the events start date to the format I wish to have but the time has issues.

Thursday, May 23, 2013 - 21:30

The problem is, the event starts at 7pm and goes until 9:30pm, so it is dropping the start time. Also i would like it to display the date/time like this

Thursday, May 23, 2013 7:00pm - 9:30pm

Another issue is when an event starts one day and goes over midnight the date format gets lost on the 2nd date:

Saturday, June 1, 2013 - 06-02 00:00

I would like this format to be:

Saturday, June 1, 2013 8:00pm - 12:00am or if thats not possible

Saturday, June 1, 2013 8:00pm - Sunday June 2nd 12:00am

Anything close to these results will do really.

As a note I have double check the dates and times in my google cal, they are correct and have start and end times.

Thank you, Anthony

sugi commented 11 years ago

I added date format feature with Globalize at version 1.2.2. http://sugi.github.io/jquery-gcal-flow/#globalize

Try your format with globalizefmt* options.