Skip to content

Commit

Permalink
fixed test + fixed upgrade step
Browse files Browse the repository at this point in the history
  • Loading branch information
eikichi18 committed Jan 23, 2024
1 parent ee3c52a commit 997480c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/redturtle/volto/tests/test_publication_fields_fixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def test_set_effective_date_store_right_value_in_plone(self):
commit()
self.assertEqual(
self.portal["mydocument"].effective().strftime("%d-%m-%Y %H:%M"),
effective.utcdatetime().strftime("%d-%m-%Y %H:%M"),
effective.strftime("%d-%m-%Y %H:%M"),
)
self.assertEqual(
self.portal["mydocument"].expires().strftime("%d-%m-%Y %H:%M"),
expires.utcdatetime().strftime("%d-%m-%Y %H:%M"),
expires.strftime("%d-%m-%Y %H:%M"),
)
2 changes: 1 addition & 1 deletion src/redturtle/volto/upgrades.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,4 +480,4 @@ def to_4302(context):

for brain in brains:
event = brain.getObject()
event.reindexObject(idxs=["start"])
event.reindexObject(idxs=["start", "end"])

0 comments on commit 997480c

Please sign in to comment.