papandreou / inter

A JavaScript locale library based on information extracted from the Unicode CLDR database
BSD 3-Clause "New" or "Revised" License
22 stars 5 forks source link

Replacement for defaultDateTimePattern #16

Open mwoc opened 9 years ago

mwoc commented 9 years ago

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?

papandreou commented 9 years ago

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.