From e069781d41b86551965862ddd86041ff1b7f46e8 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Fri, 20 Jun 2014 11:27:58 -0700 Subject: [PATCH] Fixing lock file date on international systems --- src/Orchard/FileSystems/LockFile/DefaultLockFileManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard/FileSystems/LockFile/DefaultLockFileManager.cs b/src/Orchard/FileSystems/LockFile/DefaultLockFileManager.cs index d19e489a7..eacd56881 100644 --- a/src/Orchard/FileSystems/LockFile/DefaultLockFileManager.cs +++ b/src/Orchard/FileSystems/LockFile/DefaultLockFileManager.cs @@ -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