Skip to content

support for literal strings including literal single quotes #394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

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