Metadata: Prefer SubSecDateTimeOriginal and SubSecCreateDate #2320
This commit is contained in:
parent
400c25ad43
commit
53d814e62e
2 changed files with 6 additions and 6 deletions
|
@ -17,8 +17,8 @@ type Data struct {
|
|||
FileName string `meta:"FileName"`
|
||||
DocumentID string `meta:"BurstUUID,MediaGroupUUID,ImageUniqueID,OriginalDocumentID,DocumentID"`
|
||||
InstanceID string `meta:"InstanceID,DocumentID"`
|
||||
TakenAt time.Time `meta:"DateTimeOriginal,CreationDate,CreateDate,MediaCreateDate,ContentCreateDate,DateTimeDigitized,DateTime,SubSecDateTimeOriginal,SubSecCreateDate" xmp:"DateCreated"`
|
||||
TakenAtLocal time.Time `meta:"DateTimeOriginal,CreationDate,CreateDate,MediaCreateDate,ContentCreateDate,DateTimeDigitized,DateTime,SubSecDateTimeOriginal,SubSecCreateDate"`
|
||||
TakenAt time.Time `meta:"SubSecDateTimeOriginal,SubSecCreateDate,DateTimeOriginal,CreationDate,CreateDate,MediaCreateDate,ContentCreateDate,DateTimeDigitized,DateTime" xmp:"DateCreated"`
|
||||
TakenAtLocal time.Time `meta:"SubSecDateTimeOriginal,SubSecCreateDate,DateTimeOriginal,CreationDate,CreateDate,MediaCreateDate,ContentCreateDate,DateTimeDigitized,DateTime"`
|
||||
TakenGps time.Time `meta:"GPSDateTime,GPSDateStamp"`
|
||||
TakenNs int `meta:"-"`
|
||||
TimeZone string `meta:"-"`
|
||||
|
|
|
@ -687,8 +687,8 @@ func TestJSON(t *testing.T) {
|
|||
|
||||
assert.Equal(t, CodecJpeg, data.Codec)
|
||||
assert.Equal(t, "0s", data.Duration.String())
|
||||
assert.Equal(t, "2016-09-07 12:49:23 +0000 UTC", data.TakenAtLocal.String())
|
||||
assert.Equal(t, "2016-09-07 12:49:23 +0000 UTC", data.TakenAt.String())
|
||||
assert.Equal(t, "2016-09-07 12:49:23.373 +0000 UTC", data.TakenAtLocal.String())
|
||||
assert.Equal(t, "2016-09-07 12:49:23.373 +0000 UTC", data.TakenAt.String())
|
||||
assert.Equal(t, 373000000, data.TakenNs)
|
||||
assert.Equal(t, "", data.TimeZone)
|
||||
assert.Equal(t, 4032, data.Width)
|
||||
|
@ -714,8 +714,8 @@ func TestJSON(t *testing.T) {
|
|||
|
||||
assert.Equal(t, CodecJpeg, data.Codec)
|
||||
assert.Equal(t, "0s", data.Duration.String())
|
||||
assert.Equal(t, "2016-09-07 12:49:23 +0000 UTC", data.TakenAtLocal.String())
|
||||
assert.Equal(t, "2016-09-07 12:49:23 +0000 UTC", data.TakenAt.String())
|
||||
assert.Equal(t, "2016-09-07 12:49:23.373 +0000 UTC", data.TakenAtLocal.String())
|
||||
assert.Equal(t, "2016-09-07 12:49:23.373 +0000 UTC", data.TakenAt.String())
|
||||
assert.Equal(t, "", data.TimeZone)
|
||||
assert.Equal(t, 4032, data.Width)
|
||||
assert.Equal(t, 3024, data.Height)
|
||||
|
|
Loading…
Reference in a new issue