File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ <?xpacket begin =" " id =" W5M0MpCehiHzreSzNTczkc9d" ?>
2+ <x : xmpmeta xmlns : x =" adobe:ns:meta/" x : xmptk =" XMP Core 4.4.0-Exiv2" >
3+ <rdf : RDF xmlns : rdf =" http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
4+ <rdf : Description rdf : about =" "
5+ xmlns : xmp =" http://ns.adobe.com/xap/1.0/"
6+ xmp : CreateDate =" 2021-02-03T12:34:56+02:00" />
7+ </rdf : RDF >
8+ </x : xmpmeta >
9+ <?xpacket end =" w" ?>
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+
3+ import system_tests
4+ from system_tests import CaseMeta , path
5+
6+ class TestXmpDateTimeSetting (metaclass = CaseMeta ):
7+ """
8+ Test fix for issue 1998.
9+ """
10+
11+ infile = path ("$data_path/issue_1998.xmp" )
12+ commands = [
13+ "$exiv2 -M'set Xmp.xmp.CreateDate XmpText 2021-02-03T12:00:00+01:00' $infile" ,
14+ "$exiv2 -K Xmp.xmp.CreateDate $infile" ,
15+ "$exiv2 -M'set Xmp.xmp.CreateDate XmpText 2021-02-03T12:34:56+02:00' $infile" ,
16+ "$exiv2 -K Xmp.xmp.CreateDate $infile" ,
17+ ]
18+ stdout = [
19+ """""" ,
20+ """Xmp.xmp.CreateDate XmpText 25 2021-02-03T12:00:00+01:00
21+ """ ,
22+ """""" ,
23+ """Xmp.xmp.CreateDate XmpText 25 2021-02-03T12:34:56+02:00
24+ """ ,
25+ ]
26+ stderr = ["" ]* 4
27+ retval = [0 ]* 4
28+
You can’t perform that action at this time.
0 commit comments