mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Merge branch '1.8.x' into 1.x
This commit is contained in:
@@ -59,7 +59,7 @@ namespace Orchard.FileSystems.LockFile {
|
|||||||
var content = _appDataFolder.ReadFile(path);
|
var content = _appDataFolder.ReadFile(path);
|
||||||
|
|
||||||
DateTime creationUtc;
|
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
|
// if expired the file is not removed
|
||||||
// it should be automatically as there is a finalizer in LockFile
|
// it should be automatically as there is a finalizer in LockFile
|
||||||
// or the next taker can do it, unless it also fails, again
|
// or the next taker can do it, unless it also fails, again
|
||||||
|
Reference in New Issue
Block a user