Bug 702030

Summary: Incorrect end date displayed in the subscription manager
Product: Red Hat Enterprise Linux 6 Reporter: RHEL Program Management <pm-rhel>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1CC: alikins, bkearney, ggainey, jsefler, knanamiy, ktakemur, mkhusid, pm-eus
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 14:51:58 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: 699442    
Bug Blocks:    
Attachments:
Description Flags
End dates circled in green are correct (fixed). End dates circled in red are incorrect (not yet fixed). none

Description RHEL Program Management 2011-05-04 15:29:16 UTC
This bug has been copied from bug #699442 and has been proposed
to be backported to 6.1 z-stream (EUS).

Comment 4 John Sefler 2011-05-09 22:15:29 UTC
Created attachment 497933 [details]
End dates circled in green are correct (fixed). End dates circled in red are incorrect (not yet fixed).

Verifying Version...
[root@jsefler-betastage-server ~]# rpm -qa | grep subscription-manager
subscription-manager-0.95.14-1.el6_1.x86_64
subscription-manager-gnome-0.95.14-1.el6_1.x86_64
subscription-manager-firstboot-0.95.14-1.el6_1.x86_64
[root@jsefler-betastage-server ~]# 
[root@jsefler-betastage-server ~]# 
[root@jsefler-betastage-server ~]# subscription-manager register --username=stage_test_12
Password: 
04f0a9cc-7c3d-407a-88ac-315f311a5966 jsefler-betastage-server.usersys.redhat.com
[root@jsefler-betastage-server ~]# subscription-manager list --avail
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+


ProductName:       	Red Hat Enterprise Linux Server, Premium (8 sockets) (Up to
                        4 guests)
ProductId:         	RH0103708                
PoolId:            	8a99f9812f270524012f44fdcab650cb
Quantity:          	97                       
Expires:           	04/10/2012               
             

[root@jsefler-betastage-server ~]# subscription-manager subscribe --pool=8a99f9812f270524012f44fdcab650cb
[root@jsefler-betastage-server ~]#subscription-manager list --consumed
+-------------------------------------------+
    Consumed Product Subscriptions
+-------------------------------------------+


ProductName:        	Red Hat Enterprise Linux 6 Server
ContractNumber:     	2280329                  
AccountNumber:      	1444063                  
SerialNumber:       	3314798339594932362      
Active:             	True                     
Begins:             	04/11/2011               
Expires:            	04/10/2012 

^^^ VERIFIED BOTH list --avail and --consumed show the same Expires Date
Now, let's verify the gui...

See the attached screenshot

The end dates circled in green (plus the end date on the "My Installed Software" which is not shown) are all correct and match the entitlement's UTC end date which when rendered to the user is properly converted to the user's local time zone.

The end dates circled in red are incorrect are are being opened as separate bugzillas:
Bug 703303 - End dates off by 1 day due to UTC rounding
Bug 703286 - Compliance Status date is off

Although partially fixed, I am moving this bug to VERIFIED in favor of what is fixed.

Comment 5 errata-xmlrpc 2011-05-19 14:51:58 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/RHBA-2011-0822.html