Skip to content

Conversation

@Tendrid
Copy link

@Tendrid Tendrid commented Jul 24, 2012

support for literal strings in single quotes and literal single quotes as outlined in the jquery ui datepicker docs (http://docs.jquery.com/UI/Datepicker/parseDate)

@trentrichardson
Copy link
Owner

Thanks Tendrid, I will add this to the dev branch. Do you have a test case/example I can use?

@Tendrid
Copy link
Author

Tendrid commented Jul 24, 2012

i dont have anything written up, but heres a quick example for you:

$("#anchor").datetimepicker ({timeFormat: "h:mm tt (U'T'C)")

Used to yield a display of:
5:43 am (U'A'C)
because "T" display A or P.

as outinlined in the docs i sent to you, single quotes should represent a literal string. with my fix, the above code yeilds:

5:43 am (UTC)

going further (and also outlined in the docs) to represent a literal single quote, simple put two single quotes in. ie:

$("#anchor").datetimepicker ({timeFormat: "h:mm tt (o''mally time)")

will now yield

5:43 am (o'mally time)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants