Bug 220306
Summary: | Weird issue with date | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Raoul <xraoul> |
Component: | audit | Assignee: | Steve Grubb <sgrubb> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-12-22 21:54:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Raoul
2006-12-20 10:43:52 UTC
I bet there's a difference in locale. The audit code uses the default time format for your locale...which means it could be different between login shell and cron job. You are probably right. I'll investigate it more with my locales. Thanks and sorry for the false bug submission. Just a quick additional note. I don't know if this is a correct way to check this. The following prints the strftime format for the current locale. As root I run: python -c "import locale; print locale.nl_langinfo(locale.D_FMT)" prints: %m/%d/%y I add it as a cronjob: */1 * * * * root python -c "import locale; print locale.nl_langinfo(locale.D_FMT)" Still get %m/%d/%y in my inbox. I don't know how to evaluate this result. Aureport, when run directly from the CLI, expects a 4-digit year. Use the locale command and you'll see the difference: cron: LC_TIME="POSIX" commandline: LC_TIME="en_US.UTF-8" The python code's output must have got me confused. Thanks a lot for all the information about this. Closing as not a bug. Hope the explanation helped. |