pattern icon indicating copy to clipboard operation
pattern copied to clipboard

date-fns out of date

Open johndpope opened this issue 4 years ago • 2 comments

https://github.com/plaid/pattern/blob/15bce0377ec18972d2ceec55a2a734783dfa8a2a/client/package.json#L10

v 1.29 import { distanceInWords, parse } from 'date-fns';

->2.27.0

import { formatDistance, parseISO } from "date-fns";

/**

  • @desc Checks the difference between the current time and a provided time */

export function diffBetweenCurrentTime(timestamp:string) { return formatDistance(parseISO(timestamp), new Date(), { addSuffix: true, includeSeconds: true, }).replace(/^(about|less than)\s/i, ""); }

johndpope avatar Dec 03 '21 02:12 johndpope

Hi John, I was having trouble with my phone. Would you retry. My data is upgraded. Thanks

Tarious1 avatar Dec 06 '21 03:12 Tarious1

Hi John I sync my account on this new device. Everything is working now. Please run it again.

Tarious1 avatar Dec 10 '21 04:12 Tarious1