We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8116a97 commit de77229Copy full SHA for de77229
juju/client/gocookies.py
@@ -109,7 +109,10 @@ def py_to_go_cookie(py_cookie):
109
110
111
def generate_rfc3339_from_unix_time(unix_time: datetime.datetime) -> str:
112
- rfc, discard = unix_time.isoformat().split(".")
+ splitted_rfc = unix_time.isoformat().split(".")
113
+ if len(splitted_rfc) == 1:
114
+ return f"{splitted_rfc[0]}Z"
115
+ rfc, discard = splitted_rfc
116
discard = discard.split("+")
117
if len(discard) > 1:
118
rfc = datetime.datetime.fromisoformat(rfc)
0 commit comments