-
-
Notifications
You must be signed in to change notification settings - Fork 46
Option to control format of date-output #472
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
Comments
No, HTMLDOC just uses the date format from the current locale. What are you trying to do? |
I run htmldoc from the perl-world via open3 and looking for a way to get the correct locale into the header via --header=D.. |
Are you basing it on the server's locale, or do you want it to match the web browser language (Accept-Language header)? |
On the server's locale |
OK, well it should be picking it up already. What are the values of the LANG and LC_xxx environment variables? |
LANG=en_US.UTF-8 I tried
But it didn't change anything |
OK, take a deeper look into this - it should be picking up the locale for the date/time format. What OS/Linux distribution are you using? |
Thank you NAME="openSUSE Leap" |
htmldoc --version |
Try:
|
Hi, No, doesn't work. |
What's interesting: without LC_ALL or LC_TIME I get something like 03/22/2022 05:56:29 AM. When I use LC_ALL I get 22.03.2022 05:57:32. |
Right, I'm not sure if there is a way to customize the date format for a particular locale (I think you need to edit the glibc sources), so right now the best you can do is find a locale that formats the date and time the way you like and set |
Thank you very much! |
Hi,
Is there any option to control the format of the date-output in header/footer?
The text was updated successfully, but these errors were encountered: