mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
All cert info should be in UTC always
This commit is contained in:
parent
9affcca766
commit
161f913522
2 changed files with 5 additions and 2 deletions
|
@ -39,6 +39,9 @@ import salt.utils
|
|||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
# Always use UTC for certificate info
|
||||
os.environ['TZ'] = 'UTC'
|
||||
time.tzset()
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
|
|
|
@ -230,7 +230,7 @@ class TLSAddTestCase(TestCase):
|
|||
ca_name,
|
||||
ca_name)
|
||||
ret = {
|
||||
'not_after': 1462405161.0,
|
||||
'not_after': 1462379961.0,
|
||||
'signature_algorithm': 'sha256WithRSAEncryption',
|
||||
'extensions': None,
|
||||
'fingerprint': ('96:72:B3:0A:1D:34:37:05:75:57:44:7E:08:81:A7:09:'
|
||||
|
@ -244,7 +244,7 @@ class TLSAddTestCase(TestCase):
|
|||
'ST': 'Utah',
|
||||
'emailAddress':
|
||||
'xyz@pdq.net'},
|
||||
'not_before': 1430869161.0,
|
||||
'not_before': 1430843961.0,
|
||||
'issuer': {
|
||||
'C': 'US',
|
||||
'CN': 'localhost',
|
||||
|
|
Loading…
Add table
Reference in a new issue