wolfcw / libfaketime

libfaketime modifies the system time for a single application
https://github.com/wolfcw/libfaketime
GNU General Public License v2.0
2.71k stars 324 forks source link

'start at' date invalid #439

Closed danielkrajnik closed 11 months ago

danielkrajnik commented 11 months ago

Not sure if I missed something in the documentation, but this doesn't work?

faketime "@2020-12-24 20:30:00" date

date: invalid date ‘@2020-12-24 20:30:00’
Error: Timestamp to fake not recognized, please re-try with a different timestamp.

but this does:

faketime "@1663468944" date

Sun Sep 18 03:42:24 AM BST 2022

ArchLinux (EndeavourOS)

wolfcw commented 11 months ago

The faketime wrapper uses start-at timestamps by default. If you want to use advanced specifiers, please try with faketime -f.

danielkrajnik commented 11 months ago

Sorry, I forgot that the two projects are separate. Thank you for letting me know that the default changed.