mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
DNS Made Easy fix locale for date string (#44624)
This commit is contained in:
@@ -367,6 +367,7 @@ EXAMPLES = '''
|
||||
import json
|
||||
import hashlib
|
||||
import hmac
|
||||
import locale
|
||||
from time import strftime, gmtime
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
@@ -414,6 +415,7 @@ class DME2(object):
|
||||
return headers
|
||||
|
||||
def _get_date(self):
|
||||
locale.setlocale(locale.LC_TIME, 'C')
|
||||
return strftime("%a, %d %b %Y %H:%M:%S GMT", gmtime())
|
||||
|
||||
def _create_hash(self, rightnow):
|
||||
|
||||
Reference in New Issue
Block a user