Set custom date when building

I would like to be able to set the date of a build. All the posts with ‘date’ Frontmatter that is in the future relative to this date should not be published. Is there any way to achieve this, instead of using the system date (which I cannot change without root)

libfaketime will eventually be bypassed by applications that dynamically load
system libraries, such as librt, explicitly themselves instead of relying on
the linker to do so at application start time. libfaketime will not work with
those applications unless you can modify them.

This apparently happens a lot in complex run-time environments, e.g., for
programs written in golang, for some Java Virtual Machine implementations,
etc. Since libfaketime is effectively bypassed in such situations, there’s
nothing we can do about it

Can you run hugo in a VM?

1 Like