Merge pull request #1208 from castrapel/fixdate

Fix date
This commit is contained in:
Curtis 2018-04-13 15:39:42 -07:00 committed by GitHub
commit 1e0146a453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -157,7 +157,7 @@ def map_cis_fields(options, csr):
"csr": csr, "csr": csr,
"signature_hash": signature_hash(options.get('signing_algorithm')), "signature_hash": signature_hash(options.get('signing_algorithm')),
"validity": { "validity": {
"valid_to": options['validity_end'].format('YYYY-MM-DDTHH:MM:SSZ') "valid_to": options['validity_end'].format('YYYY-MM-DDTHH:MM') + 'Z'
}, },
"organization": { "organization": {
"name": options['organization'], "name": options['organization'],

View File

@ -103,7 +103,7 @@ def test_map_cis_fields(app):
'signature_hash': 'sha256', 'signature_hash': 'sha256',
'organization': {'name': 'Example, Inc.', 'units': ['Example Org']}, 'organization': {'name': 'Example, Inc.', 'units': ['Example Org']},
'validity': { 'validity': {
'valid_to': arrow.get(2017, 5, 7).format('YYYY-MM-DDTHH:MM:SSZ') 'valid_to': arrow.get(2017, 5, 7).format('YYYY-MM-DDTHH:MM') + 'Z'
}, },
'profile_name': None 'profile_name': None
} }
@ -132,7 +132,7 @@ def test_map_cis_fields(app):
'signature_hash': 'sha256', 'signature_hash': 'sha256',
'organization': {'name': 'Example, Inc.', 'units': ['Example Org']}, 'organization': {'name': 'Example, Inc.', 'units': ['Example Org']},
'validity': { 'validity': {
'valid_to': arrow.get(2018, 11, 3).format('YYYY-MM-DDTHH:MM:SSZ') 'valid_to': arrow.get(2018, 11, 3).format('YYYY-MM-DDTHH:MM') + 'Z'
}, },
'profile_name': None 'profile_name': None
} }