5 Commits

Author SHA1 Message Date
b31b9e2411 Fix conversion of ICU 'L' symbol.
L should not contain a leading zero.
Added a test for this too.

close #7761
2015-05-03 01:04:49 +02:00
65a2c54974 fixed unicode in FormatConverter escaping
fixes #7603
2015-03-06 16:01:05 +01:00
7a37c47bb2 Fixed #7150 - support ICU single quote syntaxes
- When converting an ICU date/time format to PHP, text within single quotes will be replaced with backslashes in front of each character (the PHP date() method for escaping text), and double-single quotes will be replaced with single quotes.
- When converting an ICU date/time format to jQuery UI, text  within single quotes, and double-single quotes, will each be preserved (rather than parsed for date/time format symbols), as jQuery UI uses the same text escaping and single quote syntax as ICU.
- Add support for '' within 'escaped text' E.g. 'o''clock'

close #7151
2015-03-01 00:02:35 +01:00
3ff548a442 Refactored DateValidator to support ICU format 2014-09-16 22:53:12 +02:00
be655d4f39 extracted date format converting to a helper class
adding and reworking the conversion of:
- ICU to PHP
- PHP to ICU
- ICU to JUI
- PHP to JUI
2014-09-16 19:48:52 +02:00