Merge branch '1.8.x' into 1.x

This commit is contained in:
Sebastien Ros
2014-06-20 15:17:56 -07:00

View File

@@ -59,7 +59,7 @@ namespace Orchard.FileSystems.LockFile {
var content = _appDataFolder.ReadFile(path);
DateTime creationUtc;
if (DateTime.TryParse(content, out creationUtc)) {
if (DateTime.TryParse(content, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal, out creationUtc)) {
// if expired the file is not removed
// it should be automatically as there is a finalizer in LockFile
// or the next taker can do it, unless it also fails, again