Skip to content

Commit

Permalink
Parse dd mmm yyyy hh:mm and weekday, dd mm yyyy hh:mm in Polish
Browse files Browse the repository at this point in the history
Fixes andrewplummer#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.
  • Loading branch information
jikamens committed Nov 21, 2019
1 parent 4adba2e commit f97aa12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/locales/pl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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?}',
Expand Down

0 comments on commit f97aa12

Please sign in to comment.