inter icon indicating copy to clipboard operation
inter copied to clipboard

Replacement for defaultDateTimePattern

Open mwoc opened this issue 11 years ago • 1 comments

In https://github.com/papandreou/inter/commit/4191753d4f2bb9e78168874d662bddbd5683d53b the defaultDateTimePattern property was removed from the calendars, but it turns out I am using this in another library, like this:

var timeFormatString = inter.getDateFormat(formatId[0]),
      dateFormatString = inter.getDateFormat(formatId[1]);
      dateFormat = inter.calendars.gregorian.defaultDateTimePattern.replace('{0}', timeFormatString).replace('{1}', dateFormatString);

Could you advise what the ideal way of replacing this in my end is?

mwoc avatar Feb 04 '15 16:02 mwoc

I removed it from inter because it was removed from CLDR :/. I don't remember exactly, but I think it disappeared in release 24. Try hunting down the changelog to see what their reasoning is.

papandreou avatar Feb 09 '15 13:02 papandreou