#623 DateTime is not handled by formatTime
Closed: Fixed Opened by tkopecek.

I sometimes see in kojid's log following problem:

  File "/usr/lib/python2.7/site-packages/koji/daemon.py", line 1219, in runTask
   response = (handler.run(),)
  File "/usr/lib/python2.7/site-packages/koji/tasks.py", line 162, in run
    return koji.util.call_with_argcheck(self.handler, self.params, self.opts)
  File "/usr/lib/python2.7/site-packages/koji/util.py", line 205, in call_with_argcheck
    return func(*args, **kwargs)
  File "/usr/sbin/kojid", line 4768, in handler
    creation_time = koji.formatTimeLong(build['creation_time'])
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 2787, in formatTimeLong
    localtime = time.mktime(time.strptime(formatTime(value), '%Y-%m-%d %H:%M:%S'))
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 2773, in formatTime
    dotidx = value.rfind('.')

xmlrpclib.DateTime is propagated here and not correctly handled by formatting functions.


PR #624

Ah, looks like this might be breaking build notifications

Commit bdf04adb fixes this issue

Commit 470addae relates to this ticket

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.15

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/623

Please continue any further discussion there.

Metadata