weechatRN

Weechat relay client for iOS using websockets https://github.com/mhoran/weechatRN
git clone http://git.hanabi.in/repos/weechatRN.git
Log | Files | Refs | README | LICENSE

commit d6b2e7d8879bebf51f940a6f8f8627bf90e8393b
parent ea495bdc3e2ebe40bc35c8159005436458e35ca5
Author: Matthew Horan <matt@matthoran.com>
Date:   Sun,  1 Nov 2020 15:54:13 -0500

Bump date-fns

Requires Date constructor to parse date from relay. Format string
changed as well.

Diffstat:
Mpackage.json | 2+-
Msrc/lib/helpers/date-formatter.ts | 5+++--
Myarn.lock | 8++++----
3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/package.json b/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@react-native-community/async-storage": "^1.12.0", - "date-fns": "^1.29.0", + "date-fns": "^2.16.1", "expo": "^39.0.0", "expo-notifications": "~0.7.2", "js-sha256": "^0.9.0", diff --git a/src/lib/helpers/date-formatter.ts b/src/lib/helpers/date-formatter.ts @@ -1,4 +1,4 @@ import { format } from 'date-fns'; -export const formatDate = (date: string | number | Date): string => - format(date, 'ddd HH:mm:ss'); +export const formatDate = (date: string): string => + format(new Date(date), 'iii HH:mm:ss'); +\ No newline at end of file diff --git a/yarn.lock b/yarn.lock @@ -3674,10 +3674,10 @@ data-urls@^2.0.0: whatwg-mimetype "^2.3.0" whatwg-url "^8.0.0" -date-fns@^1.29.0: - version "1.30.1" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.30.1.tgz#2e71bf0b119153dbb4cc4e88d9ea5acfb50dc05c" - integrity sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw== +date-fns@^2.16.1: + version "2.16.1" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.16.1.tgz#05775792c3f3331da812af253e1a935851d3834b" + integrity sha512-sAJVKx/FqrLYHAQeN7VpJrPhagZc9R4ImZIWYRFZaaohR3KzmuK88touwsSwSVT8Qcbd4zoDsnGfX4GFB4imyQ== dayjs@^1.8.15: version "1.8.24"