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

[ISSUE] DateTime now UTC not working when inputted in clock parameter. #213

Open
danieljiwonkang98 opened this issue May 6, 2023 · 0 comments

Comments

@danieljiwonkang98
Copy link

danieljiwonkang98 commented May 6, 2023

widget.item.ts is in UTC time

the below code is still calculating from DateTime.now and not from UTC time. What may be the problem?

       timeago.format(
        DateTime.parse(widget.item.ts),
        locale: 'custom',
        clock: DateTime.now().toUtc(),
        
@danieljiwonkang98 danieljiwonkang98 changed the title DateTime now UTC not working when inputted in clock parameter. [ISSUE] DateTime now UTC not working when inputted in clock parameter. May 6, 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

1 participant