Fix #8522: Add {unixtime} placeholders (1.4-maint) (#8675)

This commit is contained in:
Abhijeet 2025-03-01 11:17:13 +01:00 committed by GitHub
parent 839434891c
commit 8e6dc52a8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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