Skip to content

Commit

Permalink
from strdate to substring
Browse files Browse the repository at this point in the history
  • Loading branch information
pdjohntony committed Apr 23, 2021
1 parent 175654f commit b0d3f6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pin-reminder.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#! TO DO LIST
# CONFIGURE ADMIN EMAIL INTERVALS
# Tally stats from report and include in admin email

headers = {
"content-type": "application/json",
Expand Down Expand Up @@ -283,7 +284,7 @@ def get_mailboxes():
"Display Name" : m["DisplayName"],
"Extension" : m["DtmfAccessId"],
"Email Address": m.get("EmailAddress", ""),
"Creation Time": datetime.datetime.strptime(m["CreationTime"], "%Y-%m-%dT%H:%M:%SZ").date(),
"Creation Time": m["CreationTime"][:10],
"Self Enrollment": m["IsVmEnrolled"]
})
return mailboxes
Expand Down

0 comments on commit b0d3f6c

Please sign in to comment.