Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Fix authentication on some older Android devices (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts authored Nov 28, 2020
1 parent 57b2ac3 commit 80045cd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions resources/lib/viervijfzes/auth_awsidp.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import json
import logging
import os
import sys

import requests
import six
Expand Down Expand Up @@ -340,11 +339,7 @@ def __get_current_timestamp():
days = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']

time_now = datetime.datetime.utcnow()
if sys.platform.startswith('win'):
format_string = "{} {} %#d %H:%M:%S UTC %Y".format(days[time_now.weekday()], months[time_now.month])
else:
format_string = "{} {} %-d %H:%M:%S UTC %Y".format(days[time_now.weekday()], months[time_now.month])

format_string = "{} {} {} %H:%M:%S UTC %Y".format(days[time_now.weekday()], months[time_now.month], time_now.day)
time_string = datetime.datetime.utcnow().strftime(format_string)
return time_string

Expand Down

0 comments on commit 80045cd

Please sign in to comment.