Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 461475

Summary: Inconsistent time formats on web pages
Product: Red Hat Satellite 5 Reporter: Issue Tracker <tao>
Component: WebUIAssignee: Shannon Hughes <shughes>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: low Docs Contact:
Priority: low    
Version: 511CC: cperry, gkhachik, mpoole, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sat530 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-10 20:28:03 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:
Bug Depends On:    
Bug Blocks: 456985, 461291, 473996    
Attachments:
Description Flags
system time display - English
none
system time display - French
none
system time display - German
none
Java page time format for German
none
time format for Perl page German none

Description Issue Tracker 2008-09-08 13:07:52 UTC
Escalated to Bugzilla from IssueTracker

Comment 1 Issue Tracker 2008-09-08 13:07:54 UTC
Hello,

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

How reproducible:
-----------------
Always

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.

Actual results:
---------------
Random behaviour with occassional 24 hour format and 12 hour format based on the language choosen.

Expected results:
-----------------
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.

Additional info:
----------------
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.

Regards,
Chintu
This event sent from IssueTracker by mpoole  [SEG - RHN]
 issue 218153

Comment 2 Martin Poole 2008-09-08 13:14:57 UTC
The problem with inconsistent displayed dates appears to be a simple difference between the java code and the older perl .pxt code.

Example:

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"

Comment 3 Clifford Perry 2008-09-09 15:15:40 UTC
Adding to Sep Customer backlog tracking bug.

Comment 4 Shannon Hughes 2008-09-16 18:06:12 UTC
modified perl sub routine to match the java format.

Comment 5 Shannon Hughes 2008-12-02 20:29:34 UTC
mass move to qa

Comment 6 Preethi Thomas 2008-12-12 16:48:39 UTC
Created attachment 326739 [details]
system time display - English

Comment 7 Preethi Thomas 2008-12-12 16:49:38 UTC
Created attachment 326740 [details]
system time display - French

Comment 8 Preethi Thomas 2008-12-12 16:50:30 UTC
Created attachment 326741 [details]
system time display - German

Comment 9 Preethi Thomas 2008-12-12 16:51:50 UTC
fails_qa
Looks like this hasn't been fixed.
See the above screen shots.

Comment 10 Shannon Hughes 2008-12-16 15:53:22 UTC
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.

Comment 14 Shannon Hughes 2009-01-26 20:14:35 UTC
sorry, should have mentioned that perl side supports english only. if you try german then perl and java pages will differ.

Comment 17 Brandon Perkins 2009-09-10 20:28:03 UTC
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.

http://rhn.redhat.com/errata/RHEA-2009-1434.html