Date time changes # between nixos bash shell and Dolphin-shell tex compilation - today vs 01 Jan, 1980

  • system: "x86_64-linux"
  • host os: Linux 5.19.9, NixOS, 22.05 (Quokka), 22.05.3242.72783a2d0db
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.8.1
  • channels(root): "home-manager-22.05.tar.gz, nixos-22.05"
  • channels(usera): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

lualatex -synctex=1 -interaction=nonstopmode --shell-escape "date.tex"


\newdateformat{mydate}{\twodigit{\THEDAY}{ }\shortmonthname[\THEMONTH], \THEYEAR}


The date time is not staying consistent between nixos Dolphin shell (Integration) execution of a .tex file vs. an execution of the same setup but via a bash terminal (e.g. in the shellHook)
How to get the current date in bash terminal/mkShell available?

with lualatex executed in dophin integrated shell :

2nd Oct, 2022
02 Oct, 2022

with lualatex executed in bash terminal:

1st Jan, 1980
01 Jan, 1980