photoprism/pkg/time/tz/strip_test.go
2025-05-06 16:52:02 +02:00

14 lines
295 B
Go

package tz
import (
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func TestStrip(t *testing.T) {
t.Run("Local", func(t *testing.T) {
assert.Equal(t, time.Time(time.Date(1990, time.April, 18, 1, 0, 0, 0, time.UTC)), Strip(time.Date(1990, 4, 18, 1, 0, 0, 0, time.Local)))
})
}