Commits

Anonymous committed 7a079a1

Timestamp of the request now built using datetime.utcnow()

Before we were using datetime.now(), which can result in Amazon denying the request due to your local time settings.

  • Participants
  • Parent commits 448282f

Comments (0)

Files changed (1)

         argv['AWSAccessKeyId'] = getLicenseKey()
     argv.update(getOptions())
     argv.update({'Service':'AWSECommerceService',
-                 'Timestamp':datetime.now().strftime('%Y-%m-%dT%H:%M:%SZ'),
+                 'Timestamp':datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ'),
                  'Version':VERSION})
 
     return buildQuery(argv)