Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date-fns out of date #196

Open
johndpope opened this issue Dec 3, 2021 · 2 comments
Open

date-fns out of date #196

johndpope opened this issue Dec 3, 2021 · 2 comments

Comments

@johndpope
Copy link

"date-fns": "^1.30.1",

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, "");
}

@Tarious1
Copy link

Tarious1 commented Dec 6, 2021

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

@Tarious1
Copy link

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

@plaid plaid deleted a comment from JefferyOsborne Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants