U4-3736 - Unit test Can_Get_File_Dates() fails in specific time spans when not on UTC time.

Created by Anders Krogh 27 Nov 2013, 17:02:40 Updated by Anders Krogh 28 Nov 2013, 14:27:35

Can_Get_File_Dates() fails when run on non-UTC machine, due to mismatch between .NET's generic DateTime.Today function - returning local time - and Umbraco's PhysicalFileSystem.GetCreated(string path) which returns UTC time.

So on a UTC+4 locale, the test will fail for 4 hours after midnight, every day.

Fix: If PhysicalFileSystem.GetCreated(string path) is intended to return time in UTC format the unit test needs to be changed.

Am submitting patch suggestion.

Comments

Priority: Minor

Type: Bug

State: Fixed

Assignee:

Difficulty: Very Easy

Category: Localization

Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.0.1

Due in version:

Sprint:

Story Points:

Cycle: