Skip to content

Commit

Permalink
ad:fix one more place which still uses localtime for secret starttime (
Browse files Browse the repository at this point in the history
  • Loading branch information
yugangw-msft authored Nov 23, 2016
1 parent 3a00e12 commit c56c791
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def reset_service_principal_credential(name, password=None, years=1):

#build a new password credential and patch it
password = password or str(uuid.uuid4())
start_date = datetime.datetime.now()
start_date = datetime.datetime.utcnow()
end_date = start_date + relativedelta(years=years)
key_id = str(uuid.uuid4())
app_cred = PasswordCredential(start_date, end_date, key_id, password)
Expand Down

0 comments on commit c56c791

Please sign in to comment.