🐞 Bug report
Test fails cause the /blog/index.html has the publish date's for the blogs. However, it uses the shortDate pipe.
Description
Test fails cause the /blog/index.html has the publish date's for the blogs. However, it uses the shortDate pipe. What this means is that in certain timezones (mine) the shortDate pipe turns the publish date into 12/31/69 and other times (Sander's and Jorge's timezone) it turns it into 1/1/70.
12/31/69 is shortDate speak for December 31 1969.
1/1/70 is shortDate speak for January 1 1970.
Depending on your timezone, this means if the build machine is in a different timezone than the machine that the snapshot is taken (Sander's and Jorge's machine) then these tests will fail. What do we need to do, then?
For starters, the publish date that is failing is the one on /blog/2014/2/14/asdf.md. The publish date in that file is a fixed date that occurred some time in 2019. We need to figure out why the shortDate is turning that into something from 1969. So we ultimately need to fix that. But... even if we fix that, it will likely still be different dates depending on your timezone. So, we need to fix the test anyways.
🐞 Bug report
Test fails cause the
/blog/index.htmlhas the publish date's for the blogs. However, it uses the shortDate pipe.Description
Test fails cause the
/blog/index.htmlhas the publish date's for the blogs. However, it uses the shortDate pipe. What this means is that in certain timezones (mine) the shortDate pipe turns the publish date into12/31/69and other times (Sander's and Jorge's timezone) it turns it into1/1/70.12/31/69is shortDate speak for December 31 1969.1/1/70is shortDate speak for January 1 1970.Depending on your timezone, this means if the build machine is in a different timezone than the machine that the snapshot is taken (Sander's and Jorge's machine) then these tests will fail. What do we need to do, then?
For starters, the publish date that is failing is the one on
/blog/2014/2/14/asdf.md. The publish date in that file is a fixed date that occurred some time in 2019. We need to figure out why the shortDate is turning that into something from 1969. So we ultimately need to fix that. But... even if we fix that, it will likely still be different dates depending on your timezone. So, we need to fix the test anyways.