Skip to content

Commit

Permalink
Added missing parameter date to date_to_string on sample listing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunga001 committed Dec 19, 2022
1 parent 59c010d commit 219882d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/senaite/core/browser/samples/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ def to_datetime_input_value(self, date):
"""
if not isinstance(date, DateTime):
return ""
return dtime.date_to_string("%Y-%m-%d %H:%M")
return dtime.date_to_string(date, fmt="%Y-%m-%d %H:%M")

def getDefaultAddCount(self):
return self.context.bika_setup.getDefaultNumberOfARsToAdd()
Expand Down

0 comments on commit 219882d

Please sign in to comment.