Closed tzekenster closed 6 years ago
From card.py, I found this segment of code
`def set_due(self, due): #:due: a datetime object datestr = due.strftime('%Y-%m-%dT%H:%M:%S') self._set_remote_attribute('due', datestr) self.due = datestr`
But in my code, while working on a card, when I enter a date object as an argument in the following date structure (2018-05-04T15:13:25), I can't seem to get it to work.
Does anybody have a clue or a code snippet to share?
It worked after changing strftime('%Y-%m-%dT%H:%M:%S') into strftime("%Y-%m-%dT%H:%M:%S.000Z")
strftime('%Y-%m-%dT%H:%M:%S')
strftime("%Y-%m-%dT%H:%M:%S.000Z")
From card.py, I found this segment of code
But in my code, while working on a card, when I enter a date object as an argument in the following date structure (2018-05-04T15:13:25), I can't seem to get it to work.
Does anybody have a clue or a code snippet to share?