add {unixtime} placeholder, fixes #8522

This commit is contained in:
Abhijeet 2025-02-24 17:18:58 +01:00 committed by GitHub
parent 07e0eabb69
commit 4eef6178e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -280,6 +280,7 @@ def _replace_placeholders(text, overrides={}):
"hostname": hostname,
"now": DatetimeWrapper(current_time.astimezone()),
"utcnow": DatetimeWrapper(current_time),
"unixtime": int(current_time.timestamp()),
"user": getosusername(),
"uuid4": str(uuid.uuid4()),
"borgversion": borg_version,