From 31533e132611a38ad3fc9045c34fad8b279af8d1 Mon Sep 17 00:00:00 2001 From: Steffen Engl Date: Tue, 3 Nov 2020 06:52:14 +0100 Subject: [PATCH] weird timestamps fixed Weird timestamps occur when we add a zero instead of a blanc --- .../DataTypes/Projectfolders/Step7V5/BlocksOfflineFolder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibNoDaveConnectionLibrary/DataTypes/Projectfolders/Step7V5/BlocksOfflineFolder.cs b/LibNoDaveConnectionLibrary/DataTypes/Projectfolders/Step7V5/BlocksOfflineFolder.cs index 9f5dd610..48bc5ce2 100644 --- a/LibNoDaveConnectionLibrary/DataTypes/Projectfolders/Step7V5/BlocksOfflineFolder.cs +++ b/LibNoDaveConnectionLibrary/DataTypes/Projectfolders/Step7V5/BlocksOfflineFolder.cs @@ -810,7 +810,7 @@ private static DateTime GetTimeStamp(string timestamp) //use Windows-1252 to get correct time because dBaseConverter uses this code page for strings var bytes = Util.DefaultEncoding.GetBytes(timestamp); return bytes.Length == 5 - ? Helper.GetDT((byte)bytes[0], (byte)bytes[1], (byte)bytes[2], (byte)bytes[3], (byte)bytes[4], (byte)0) + ? Helper.GetDT((byte)bytes[0], (byte)bytes[1], (byte)bytes[2], (byte)bytes[3], (byte)bytes[4], (byte)0x20) : Helper.GetDT((byte)bytes[0], (byte)bytes[1], (byte)bytes[2], (byte)bytes[3], (byte)bytes[4], (byte)bytes[5]); } catch