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
1
Jul 23
1870
9
Jun 23
11130
4
Dec 22
7969
2
Jan 22
2733
2
Dec 21
6269