Skip to content

Commit 8de4e7c

Browse files
euquiqdjdd87
authored andcommitted
Tiny bugfix
When searching for snapshots inside a minute timespan, the minute starts at second 00 and ends NOT at second 59, but at second 59, milliseconds 999 ... I was missing the entire last second from the selected minute, until this little fix.
1 parent ac46729 commit 8de4e7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SynoAI/Controllers/HomeController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public IActionResult Gallery(string cameraname, string year, string month, strin
5151

5252
try
5353
{
54-
ViewData["date"] = new DateTime(Int16.Parse(year),Int16.Parse(month),Int16.Parse(day),Int16.Parse(hour),Int16.Parse(minute),59);;
54+
ViewData["date"] = new DateTime(Int16.Parse(year),Int16.Parse(month),Int16.Parse(day),Int16.Parse(hour),Int16.Parse(minute),59,999);;
5555
}
5656
catch (Exception ex)
5757
{

0 commit comments

Comments
 (0)