Skip to content

Commit

Permalink
[FIX] correct date
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrixcosta committed Jun 7, 2020
1 parent 61a4051 commit a321c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_br_fiscal/models/closing.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ def monta_caminho(self, document):

def _date_range(self):
date_range = calendar.monthrange(int(self.year), int(self.month))
date_min = '-'.join((self.year, self.month, str(date_range[0])))
date_min = datetime.strptime(date_min, '%Y-%m-%d').replace(day=1)
date_min = '-'.join((self.year, self.month, '01'))
date_min = datetime.strptime(date_min, '%Y-%m-%d')

date_max = '-'.join((self.year, self.month, str(date_range[1])))
date_max = datetime.strptime(date_max, '%Y-%m-%d')
Expand Down

0 comments on commit a321c46

Please sign in to comment.