File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 139
139
" trw" ,
140
140
" twz" ,
141
141
" txcwsb" ,
142
+ " tzinfo" ,
142
143
" ucfirst" ,
143
144
" ul" ,
144
145
" uname" ,
Original file line number Diff line number Diff line change @@ -1918,7 +1918,10 @@ def add_worklog(self,
1918
1918
1919
1919
if started is not None :
1920
1920
# based on REST Browser it needs: "2014-06-03T08:21:01.273+0000"
1921
- data ['started' ] = started .strftime ("%Y-%m-%dT%H:%M:%S.000+0000%z" )
1921
+ if started .tzinfo is None :
1922
+ data ['started' ] = started .strftime ("%Y-%m-%dT%H:%M:%S.000+0000" )
1923
+ else :
1924
+ data ['started' ] = started .strftime ("%Y-%m-%dT%H:%M:%S.000%z" )
1922
1925
if user is not None :
1923
1926
data ['author' ] = {"name" : user ,
1924
1927
'self' : self .JIRA_BASE_URL + '/rest/api/latest/user?username=' + user ,
You can’t perform that action at this time.
0 commit comments