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

fix: Use user locale on last konnector execution date (SCR-916) #2659

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

doubleface
Copy link
Contributor

@doubleface doubleface commented Dec 12, 2024

Force user locale used by cozy-ui's formatLocallyDistanceToNow function
Avoid Sync. Il y a about 23 hours messages

export const makeLabel = ({ t, konnector, trigger, isRunning, lang }) => {
if (lang) {
// force current language for cozy-ui formatLocallyDistanceToNow
initFormat(lang)(new Date(), 'yyyy-MM-dd HH:mm:ss')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ça me pose question cette approche 🤔 est-ce qu'on ne devrait pas plutôt passer lang à formatLocallyDistanceToNow @Merkur39 ?

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

Successfully merging this pull request may close these issues.

2 participants