Mailspring/internal_packages/thread-snooze
Juan Tejada 1fe51ef586 fix(date-utils): Add localization to date formats
Summary:
- Setting the locale in moment was not sufficient to actually use the
  correct localized formats.
- Moment provides localized format via the formats : 'L', 'LL', 'll',
  etc. See: http://momentjs.com/docs/#/displaying/format/
- Updates to set our date formats based on localized formats:
  - Unfortunately, localized formats always contain the year, so I
    manually removed the year from our short format.
- Actually fixes: #1515
- Fixes bug where setting nextWeek or thisWeekend returned incorrect
  date if the current day was saturday or sunday
- Add specs

Test Plan: Unit tests

Reviewers: evan, drew, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2688
2016-03-07 16:44:54 -08:00
..
assets feat(snooze): Adds initial design pass and update snooze popover 2016-02-23 20:03:42 -08:00
lib fix(date-utils): Add localization to date formats 2016-03-07 16:44:54 -08:00
spec fix(date-utils): Add localization to date formats 2016-03-07 16:44:54 -08:00
stylesheets test(plugins): Add snooze and send later specs 2016-03-03 12:38:42 -08:00
package.json fix(metadata-plugins): Add production app ids 2016-02-23 22:29:49 -08:00
README.md feat(snooze/send-later): Add snooze and send later plugins 2016-02-18 10:06:21 -08:00