Skip to content

parse return wrong date #40

@ehudg

Description

@ehudg

Hi, I'm using the following code:

       `var originImage = await s3.getObject(params).promise();       
      
        var buffer = await sharp(originImage.Body).withMetadata().toBuffer(); 
                    
        var parser = require('exif-parser').create(buffer);

        var exifData = await  metaDataService.Convert(parser.parse());`

All the data is fine, expect for the dates. I'm getting the following:

ModifyDate: 1595773338,
DateTimeOriginal: 1595168559,
CreateDate: 1595168559,

All these and translated to dates from 1970 (!).

But the image creation date is 19/07/2020 14:22.

What might be the problem?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions