[Nix-dev] Set date/time manually

Eike eike at eknet.org
Wed Jun 15 00:02:25 CEST 2016



Bjørn Forsman <bjorn.forsman at gmail.com> writes:

> On 15 June 2016 at 16:36, Eike <eike at eknet.org> wrote:
>>
>> sorry, I meant to write `sudo date +%Y%m%d -s "20180210`.
>>
> Your command works for me. ("date" returns the new date.) But for
> testing purposes, I'd have a look at faketime instead: nix-env -iA
> nixos.libfaketime.

It's strange, the date command works here fine, too. At work I'm running
nixos in a vm, maybe this makes a difference…. But thanks for mentioning
libfaketime, I didn't know about it and it is exactly what I need.

Thanks and regards
Eike

-- 
gpg: AD7AC35E
finger print: 137F BB0B 1639 D25F DC5D E59C B412 C5F5 AD7A C35E


More information about the nix-dev mailing list