Angular CLI 显示错误的时间

Angular CLI showing the wrong time

当我 运行 一个 Angular 命令返回的时间晚了 1 小时。我相信这会导致检测 livereload 变化方面的问题。我如何找到问题所在?

输出:

[ng] Date: 2020-03-11T08:08:14.687Z

预期输出:

[ng] Date: 2020-03-11T09:08:14.687Z

如果我在 CLI 中键入命令 time,它会向我显示正确的时间。它似乎与 Angular CLI 相关。

为了清楚起见,这是我在 运行 ng build.

时得到的输出

这个时间不正确,比我的时区晚了 1 小时。

显示的日期为 UTC。请注意 Z 作为时间戳的最后一个字符。估计是故意用的

请看一下这个问题:ng serve doesn't consider the timezone when printing the output 并尝试按照上述进行替换。