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

Allow to access the datatime object in epn #7333

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

Conversation

Et7f3
Copy link

@Et7f3 Et7f3 commented Apr 24, 2024

We have internationals users and we want to format in their native language.

We have internationals users and we want to format in their native language.
@rcritten
Copy link
Contributor

Please see https://www.freeipa.org/page/Contribute/Code on PR requirements.

The text of the commit doesn't match the content (this has nothing to do with i18n).

Will that strptime work? I think the value will be like 20240724200619Z

The time delta is going to display oddly, like: 3:59:59.999997

@Et7f3
Copy link
Author

Et7f3 commented Apr 26, 2024

The text of the commit doesn't match the content (this has nothing to do with i18n).

The title explain the modification: we provide the datetime object in variable for template. Thus in template we can do expiration_datetime.strfmt("with my native language").

Will that strptime work ?

Yes it can parse date from FreeIPA server. I intended to let user format as their wish. I could Have added another setting with the python format.

The time delta is going to display oddly, like: 3:59:59.999997

In template we can do .days or a formatting function.

Please see https://www.freeipa.org/page/Contribute/Code on PR requirements.

Sorry, I just opened to not lost my change. I will clean later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants