Metadata: Use UTC offset if actual time zone is unknown #3780

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2023-10-21 00:11:11 +02:00
parent 54f281a425
commit 60efc86649
22 changed files with 705 additions and 39 deletions

View File

@@ -4,6 +4,8 @@ import (
"testing"
"time"
"github.com/photoprism/photoprism/pkg/txt"
"github.com/stretchr/testify/assert"
)
@@ -113,7 +115,7 @@ func TestPhoto_SetTakenAt(t *testing.T) {
zone := "Europe/Berlin"
loc, _ := time.LoadLocation(zone)
loc := txt.TimeZone(zone)
newTime := time.Date(2013, 11, 11, 9, 7, 18, 0, loc)