The server-sent ISO8601 timestamps are not necessarily in the user's
preferred timezone. This change uses time.Local() to get the time in
the user's local time according to their system settings.
Success case, interactive terminal:
[coder@jawnsy-m coder-cli]$coder envs watch-build jawnsy-mwarning: version mismatch detected | Coder CLI version: unknown | Coder API version: 1.14.0+709-g75124e3d4-20210211 | | tip: download the appropriate version here: https://github.com/cdr/coder-cli/releases✅ -- 2021-02-11T16:21:12-08:00 Your environment was queued for rebuilding✅ -- 2021-02-11T16:21:16-08:00 Deleting old environment✅ -- 2021-02-11T16:21:16-08:00 Deleting old network isolation policy✅ -- 2021-02-11T16:21:16-08:00 Deleting old service✅ -- 2021-02-11T16:21:16-08:00 Getting default user from image✅ -- 2021-02-11T16:22:15-08:00 Ensuring environment has a home volume✅ -- 2021-02-11T16:22:15-08:00 Creating network isolation policy✅ -- 2021-02-11T16:22:15-08:00 Creating environment service✅ -- 2021-02-11T16:22:15-08:00 Creating environment✅ -- 2021-02-11T16:22:56-08:00 Initializing environment as container-based virtual machine✅ -- 2021-02-11T16:22:56-08:00 Pulling image gcr.io/coder-dogfood/master/enterprise-dev✅ -- 2021-02-11T16:25:29-08:00 Mounting volumes into environment✅ -- 2021-02-11T16:25:29-08:00 Starting environment /sbin/init✅ -- 2021-02-11T16:25:29-08:00 Creating container✅ -- 2021-02-11T16:25:31-08:00 Starting environment✅ -- 2021-02-11T16:25:31-08:00 Waiting for environment to become available✅ -- 2021-02-11T16:25:33-08:00 Injecting secrets into environment✅ -- 2021-02-11T16:25:33-08:00 Configuring Git✅ -- 2021-02-11T16:25:33-08:00 Running /coder/configure✅ -- 2021-02-11T16:25:36-08:00 Running ~/personalize
Success case, non-interactive terminal:
[coder@jawnsy-m coder-cli]$coder envs watch-build jawnsy-m| catwarning: version mismatch detected | Coder CLI version: unknown | Coder API version: 1.14.0+709-g75124e3d4-20210211 | | tip: download the appropriate version here: https://github.com/cdr/coder-cli/releases2021-02-11T16:21:12-08:00 Your environment was queued for rebuilding2021-02-11T16:21:16-08:00 Deleting old environment2021-02-11T16:21:16-08:00 Deleting old network isolation policy2021-02-11T16:21:16-08:00 Deleting old service2021-02-11T16:21:16-08:00 Getting default user from image2021-02-11T16:22:15-08:00 Ensuring environment has a home volume2021-02-11T16:22:15-08:00 Creating network isolation policy2021-02-11T16:22:15-08:00 Creating environment service2021-02-11T16:22:15-08:00 Creating environment2021-02-11T16:22:56-08:00 Initializing environment as container-based virtual machine2021-02-11T16:22:56-08:00 Pulling image gcr.io/coder-dogfood/master/enterprise-dev2021-02-11T16:25:29-08:00 Mounting volumes into environment2021-02-11T16:25:29-08:00 Starting environment /sbin/init2021-02-11T16:25:29-08:00 Creating container2021-02-11T16:25:31-08:00 Starting environment2021-02-11T16:25:31-08:00 Waiting for environment to become available2021-02-11T16:25:33-08:00 Injecting secrets into environment2021-02-11T16:25:33-08:00 Configuring Git2021-02-11T16:25:33-08:00 Running /coder/configure2021-02-11T16:25:36-08:00 Running ~/personalize[coder@jawnsy-m coder-cli]$TZ=America/Toronto coder envs watch-build jawnsy-m| catwarning: version mismatch detected | Coder CLI version: unknown | Coder API version: 1.14.0+709-g75124e3d4-20210211 | | tip: download the appropriate version here: https://github.com/cdr/coder-cli/releases2021-02-11T19:21:12-05:00 Your environment was queued for rebuilding2021-02-11T19:21:16-05:00 Deleting old environment2021-02-11T19:21:16-05:00 Deleting old network isolation policy2021-02-11T19:21:16-05:00 Deleting old service2021-02-11T19:21:16-05:00 Getting default user from image2021-02-11T19:22:15-05:00 Ensuring environment has a home volume2021-02-11T19:22:15-05:00 Creating network isolation policy2021-02-11T19:22:15-05:00 Creating environment service2021-02-11T19:22:15-05:00 Creating environment2021-02-11T19:22:56-05:00 Initializing environment as container-based virtual machine2021-02-11T19:22:56-05:00 Pulling image gcr.io/coder-dogfood/master/enterprise-dev2021-02-11T19:25:29-05:00 Mounting volumes into environment2021-02-11T19:25:29-05:00 Starting environment /sbin/init2021-02-11T19:25:29-05:00 Creating container2021-02-11T19:25:31-05:00 Starting environment2021-02-11T19:25:31-05:00 Waiting for environment to become available2021-02-11T19:25:33-05:00 Injecting secrets into environment2021-02-11T19:25:33-05:00 Configuring Git2021-02-11T19:25:33-05:00 Running /coder/configure2021-02-11T19:25:36-05:00 Running ~/personalize
Error case, interactive terminal:

Error case, non-interactive terminal (piped command through cat):

The server-sent ISO8601 timestamps are not necessarily in the user's
preferred timezone. This change uses time.Local() to get the time in
the user's local time according to their system settings.
Success case, interactive terminal:
Success case, non-interactive terminal:
Error case, interactive terminal:
Error case, non-interactive terminal (piped command through cat):