Skip to Content
मेन्यू
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
जून 25
708
1
जुल॰ 23
3423
9
जून 23
12855
4
दिस॰ 22
9383
2
जन॰ 22
3717