Code review comment for lp:~dannf/laika/support-multiple-date-types

Revision history for this message
Peter Petrakis (peter-petrakis) wrote :

Why not just cast lpdate to str and take split from there? The lang is
duck typing after all and there isn't any other actions taken here. Now
you've got two code paths that do the same thing when:

dt = datetime.datetime.strptime(str(lpdate).split('.')[0], '%Y-%m-%dT%H:%M:%S')

will do.

« Back to merge proposal