Angular CLI showing the wrong time

879 views Asked by At

When I run an Angular command the time returned is 1 hour behind. I believe this is causing problems in terms of detecting change with livereload. How do I find what the problem is to this?

Output:

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

Expected output:

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

If I type the command time in the CLI it displays the right time to me. It seems to be Angular CLI related.

For the sake of clarity, this is the output I get when I run ng build.

enter image description here

This time is not correct it is 1 hour behind of my timezone.

1

There are 1 answers

1
Giannis On BEST ANSWER

The Date displayed is in UTC. Please notice the Z as the last character of the timestamp. I guess it is used on purpose.

Please take a look at this issue: ng serve doesn't consider the timezone when printing the output and try to make the replacements as mentioned.