sandflow / regxmllib

Convert MXF to XML: RegXML (SMPTE ST 2001-1) tools and libraries
BSD 2-Clause "Simplified" License
35 stars 14 forks source link

zero-pad elements of timestamps #54

Closed mglanville closed 9 years ago

mglanville commented 9 years ago

Output when parsing AS11_DPP_HD_EXAMPLE_1.mxf:

<r6:UKDPP_Completion_Date>2014- 2- 6T 0: 0: 0.0Z</r6:UKDPP_Completion_Date>

I was expecting:

<r6:UKDPP_Completion_Date>2014-02-06T00:00:00.0Z</r6:UKDPP_Completion_Date>
palemieux commented 9 years ago

Bug introduced in https://github.com/sandflow/regxmllib/commit/8f134805a89430fcd65ea1ad9618844bad018af5

palemieux commented 9 years ago

Note that regxmllib assumes that fraction = msec/4 according to 377-1