Skip to content

Commit

Permalink
Drop microseconds in the Date header in the index file
Browse files Browse the repository at this point in the history
  • Loading branch information
RKrahl committed Jan 1, 2025
1 parent 663abc0 commit fe5ecac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/photoidx/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ def read(self, idxfile=None):
def write(self, idxfile=None):
"""Write the index to a file.
"""
now = datetime.datetime.now(tz=self.timeZone).replace(microsecond=0)
head = {
'Version': self.idxFileVersion,
'Date': datetime.datetime.now(tz=self.timeZone),
'Date': now,
'TimeZone': gettz_name(self.timeZone) if self.timeZone else None,
'Checksums': self.checksums,
}
Expand Down

0 comments on commit fe5ecac

Please sign in to comment.