Skip to Content
Menu
This question has been flagged

Am getting the above error in result line

elif interval == 'datetime':
            # Localized time
            dummy, format_time = self._get_date_formats()
            #result =  str(date)[0:10].encode()+' '+tools.ustr(date.strftime(format_time + " %Z"))
            #result = str(date)[0:10]+' '+tools.ustr(date.strftime(format_time + " %Z"))
            result =  str(date)[0:10].encode("utf-8") +b" "+tools.ustr(date.strftime(format_time + " %Z"))


Please advice.

Avatar
Discard

The error message itself says what is the issue, carefully check the code and see when you concatenate (+) , the one of the value type is not str, try to find out which one is that and do the necessary

Related Posts Replies Views Activity
3
Jun 25
656
1
Jul 23
3345
9
Jun 23
12790
4
Dec 22
9286
2
Jan 22
3663