photoprism/internal/photoprism/timezone_test.go
Michael Mayer f510ac994c XMP: Group files based on DocumentID and Instance ID #335
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-27 13:40:21 +02:00

23 lines
445 B
Go

package photoprism
import (
"testing"
"github.com/photoprism/photoprism/internal/config"
"github.com/stretchr/testify/assert"
)
func TestMediaFile_TimeZone(t *testing.T) {
t.Run("/elephants.jpg", func(t *testing.T) {
conf := config.TestConfig()
img, err := NewMediaFile(conf.ExamplesPath() + "/elephants.jpg")
assert.Nil(t, err)
zone := img.TimeZone()
assert.Nil(t, err)
assert.Equal(t, "Africa/Johannesburg", zone)
})
}