| Summary: | Incorrect end date displayed in the subscription manager | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Adrian Likins <alikins> | ||||||
| Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.2 | CC: | alikins, bkearney, ggainey, jmolet, jsefler, knanamiy, ktakemur, mkhusid | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | 695234 | Environment: | |||||||
| Last Closed: | 2011-12-06 17:13:41 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Bug Depends On: | 695234 | ||||||||
| Bug Blocks: | 682238, 702030 | ||||||||
| Attachments: |
|
||||||||
Created attachment 497355 [details]
dates
This seems to be working for the in all cases with the exception of the "Certificate Status" date given (see screenshot). That one seems to be two days off from the actual date.
Local time for the screenshot in comment 4 is: 05/06/2011 09:31 AM EST Argh. Indeed it is. Looks like a merge error since it's works in master, and there is a one liner that didn't make it from master to rhel6 that fixes it. Got a patch out for review. this bug should be used to verify the fix in the rhel62 release Note: corresponding bug 702030 was used to verify fix in rhel6.1z Note: corresponding bug 695234 was used to verify fix in rhel5.7 Created attachment 515779 [details]
validuntil
new wording makes all the dates make sense.
screenshot dates match the cli and the cert:
[root@jmolet-vm0 entitlement]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Product Subscriptions
+-------------------------------------------+
ProductName: Awesome OS Server Bits
ContractNumber: 65
AccountNumber: 12331131231
SerialNumber: 2001266316829453850
Active: True
QuantityUsed: 1
Begins: 07/27/2011
Expires: 07/26/2012
moving to VERIFIED. subscription-manager-gnome-0.96.4-1.git.66.43ed963.el6.x86_64 subscription-manager-0.96.4-1.git.66.43ed963.el6.x86_64 subscription-manager-firstboot-0.96.4-1.git.66.43ed963.el6.x86_64 python-rhsm-0.96.7-1.git.4.ae2c338.el6.noarch *** Bug 703286 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1695.html |
commit 002129264af09a202d784de7c8d4f5f3d81bf39d Author: Adrian Likins <alikins> Date: Mon Apr 18 14:16:43 2011 -0400 699442: dates are being displayed incorrectly everywhere installed tab was storing a formatted date string, which was getting coverted to a datetime, losing it's timezone, and was then getting displayed incorrectly. Change all of our TreeStores to store datetime objects for dates instead of formatted strings, and make CellRendererDate do the formatting. Add parseDate to managerlib and make formatDate just format. parseDate expects an iso8601 style date and returns a datetime, while formatDate expects a datetime and returns a formatted string. Move LocalTz tzinfo subclass here from gui/utils. Note: for installedtab, we also changed the start/end dates displayed from being the _order_ start and end dates, to being the stand/end dates for the certificate. Try to be a little more consistent in our usage of formatDate vs strftime