Page MenuHome GnuPG

gpg --faked-system-time "$(date +%s)!" doesn't work
Closed, WontfixPublic

Description

If the fake time equals the current time, the frozen flag ("!") is ignored, see first conditional in gnupg_set_time.

Event Timeline

werner claimed this task.
werner added a project: gnupg.
werner added a subscriber: werner.

This is a debug option; I see no use case for this.

One use case that seems sensible to me is to try to convince a long-running operation (e.g. a sequence of key generations) to all use a single timestamp. In this scenario, there's no interest in setting the clock to be some variant of the current time, just an interest in it remaining fixed across all the operations.