Skip to content

Commit

Permalink
Fix: Fixed file name when pasting clipboard content (files-community#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DMCS20 authored Dec 17, 2023
1 parent f65c918 commit 49d912d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public async Task<ReturnResult> CopyItemsFromClipboard(DataPackageView packageVi
using var imageStream = await imgSource.OpenReadAsync();
var folder = await StorageFileExtensions.DangerousGetFolderFromPathAsync(destination);
// Set the name of the file to be the current time and date
var file = await folder.CreateFileAsync($"{DateTime.Now:mm-dd-yy-HHmmss}.png", CreationCollisionOption.GenerateUniqueName);
var file = await folder.CreateFileAsync($"{DateTime.Now:MM-dd-yy-HHmmss}.png", CreationCollisionOption.GenerateUniqueName);

SoftwareBitmap softwareBitmap;

Expand Down

0 comments on commit 49d912d

Please sign in to comment.