From f97aa12fba602aab3efecf63f4e5e1acd6717963 Mon Sep 17 00:00:00 2001 From: Jonathan Kamens Date: Thu, 21 Nov 2019 12:31:31 -0500 Subject: [PATCH] Parse dd mmm yyyy hh:mm and weekday, dd mm yyyy hh:mm in Polish Fixes andrewplummer/Sugar#662 I don't know if this is a complete fix because the date-parsing stuff is quite arcane and I don't fully understand it, but this at least seems to solve the problem of Sugar being unable to parse Polish dates that it has itself formatted. --- lib/locales/pl.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/locales/pl.js b/lib/locales/pl.js index 05251264f..9818ab8de 100644 --- a/lib/locales/pl.js +++ b/lib/locales/pl.js @@ -74,6 +74,10 @@ Sugar.Date.addLocale('pl', { '{shift} {unit:5-7}', '{0} {shift?} {weekday}' ], + 'timeParse': [ + '{date} {months} {year?}', + '{weekday?}\\.?,? {date} {months} {year?}' + ], 'timeFrontParse': [ '{day|weekday}', '{date} {months} {year?} {1?}',