plaid / pattern

An example end-to-end Plaid integration to create items and fetch transaction data
MIT License
434 stars 216 forks source link

date-fns out of date #196

Open johndpope opened 2 years ago

johndpope commented 2 years ago

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";

/**

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

Tarious1 commented 2 years ago

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

Tarious1 commented 2 years ago

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