Red Hat Bugzilla – Bug 461475
Inconsistent time formats on web pages
Last modified: 2010-10-23 00:21:49 EDT
Escalated to Bugzilla from IssueTracker
Description of problem:
The times shown in the Satellite [ 5.1.1 ] is random and doesn't follow a standard method. For example if we choose the Interface Language as English the times are shown in 12 hour format whereas if we choose any other international language like German, French, Italian it is following 24 hour format
Steps to Reproduce:
In Satellite 5.1.1 -> Your RHN -> Locale Preferences set Interface Language as "English". Now go to Systems -> <any system> -> check the time under 'System Events'. It would be shown in 12 hour format
Now go to Your RHN -> Locale Preferences set Interface Language as "German" and check the format under "System Events", it is in 24 hour format.
Random behaviour with occassional 24 hour format and 12 hour format based on the language choosen.
We should have all the times shown in either 12 hour or 24 hour format as a standard as long as there is no way in which we can set it to either of the options.
Customer actually needs English version with 24-hour clock format or Dutch version with 24-hour clock format and like to know how to set it.
Inititally I had a thought that it should be a feature request, but since the current behaviour is a random one I am not sure that it could be considered as a feature request.
Any advise is appreciated.
This event sent from IssueTracker by mpoole [SEG - RHN]
The problem with inconsistent displayed dates appears to be a simple difference between the java code and the older perl .pxt code.
With the locale preferences set for English.
Viewing the overview for a system (Overview.do) has the dates of the system events as "4/29/08 8:01:14 PM BST"
going to the events for the system (history.pxt)
"2008-04-29 20:01:14 BST"
Adding to Sep Customer backlog tracking bug.
modified perl sub routine to match the java format.
mass move to qa
Created attachment 326739 [details]
system time display - English
Created attachment 326740 [details]
system time display - French
Created attachment 326741 [details]
system time display - German
Looks like this hasn't been fixed.
See the above screen shots.
adding a detailed test plan. this is a test between the perl and java pages.
0) if you want to test other country times feel free to change your locale preferences under the overview tab. this is an optional step.
1) open up your browser to the overview page as you have done in the screen shots.
2) open up another browser tab and go to the system events. the history events is a good example. notice the url has a pxt ending which denotes the perl stack.
3) compare the dates on the perl event page and the java overview page. they should match in format.
sorry, should have mentioned that perl side supports english only. if you try german then perl and java pages will differ.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.