Replace `TZ=UTC` with `env TZ=UTC`. TZ=UTC is bash (POSIX shell) syntax. env, on another hand, is a program in itself. This is why when you run the command in terminal it works. You can find more info in the env manual page.
Replace `TZ=UTC` with `env TZ=UTC`. TZ=UTC is bash (POSIX shell) syntax. env, on another hand, is a program in itself. This is why when you run the command in terminal it works. You can find more info in the env manual page.