From 5261db634d0d486918d2bb4f9219d288752807ac Mon Sep 17 00:00:00 2001 From: Chuong Ho Date: Tue, 13 Jun 2023 13:37:09 +0800 Subject: [PATCH] Update origin format to save image --- src/DynamoUtilities/PathHelper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DynamoUtilities/PathHelper.cs b/src/DynamoUtilities/PathHelper.cs index 08927dfbeb6..f598b3e0c7c 100644 --- a/src/DynamoUtilities/PathHelper.cs +++ b/src/DynamoUtilities/PathHelper.cs @@ -284,9 +284,9 @@ public static bool IsFileNameInValid(string fileName) public static String GetScreenCaptureNameFromPath(String filePath) { FileInfo fileInfo = new FileInfo(filePath); - String timeStamp = string.Format("{0:yyyy-MM-dd_hh-mm-ss}", DateTime.Now); - String snapshotName = fileInfo.Name.Replace(fileInfo.Extension, "_") + timeStamp; - return snapshotName; + //String timeStamp = string.Format("{0:yyyy-MM-dd_hh-mm-ss}", DateTime.Now); + //String snapshotName = fileInfo.Name.Replace(fileInfo.Extension, "_") + timeStamp; + return fileInfo.Name.Replace(fileInfo.Extension, string.Empty); ; } ///