Skip to content

Commit

Permalink
Date fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Webreaper committed Mar 4, 2024
1 parent a8806e9 commit 0a71761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Damselfly.Core/Services/MetaDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Damselfly.Core.Services;

public class MetaDataService : IProcessJobFactory, ITagSearchService, IRescanProvider
{
private static readonly DateTime NoMetadataDate = DateTime.MinValue;
private static readonly DateTime NoMetadataDate = new DateTime(1970,01,01,00,00,00);
private readonly ConfigService _configService;
private readonly ExifService _exifService;
private readonly ImageCache _imageCache;
Expand Down Expand Up @@ -100,7 +100,7 @@ public async Task MarkFolderForScan(int folderId)
//int updated = await db.BatchUpdate(queryable, x => new ImageMetaData { LastUpdated = NoMetadataDate });

var updated =
await ImageContext.UpdateMetadataFields(db, folderId, "LastUpdated", $"'{NoMetadataDate:yyyy-MM-dd}'");
await ImageContext.UpdateMetadataFields(db, folderId, "LastUpdated", $"'{NoMetadataDate:yyyy-MM-dd HH:mm:ss}'");

if ( updated != 0 )
_statusService.UpdateStatus($"{updated} images in folder flagged for Metadata scanning.");
Expand Down

0 comments on commit 0a71761

Please sign in to comment.