Skip to content

Commit

Permalink
oiio writer: update the DateTime metadata format
Browse files Browse the repository at this point in the history
* Tuttle should continue to put it since all oiio plugins do not add it.
* Update the date format to write the same as oiio.
* See an example with TIFF:
https://github.com/OpenImageIO/oiio/blob/Release-1.6.16/src/tiff.imageio/tiffoutput.cpp#L475
  • Loading branch information
Clement Champetier committed Feb 17, 2017
1 parent b887c5f commit 1b7dddd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ void OpenImageIOWriterProcess<View>::writeImage(View& src, const std::string& fi
const time_t rawtime = time(0);
const struct tm * timeinfo = localtime(&rawtime);
char buffer[80];
strftime(buffer, 80,"%d-%m-%Y %I:%M:%S", timeinfo);
strftime(buffer, 80,"%Y:%m:%d %I:%M:%S", timeinfo);
spec.attribute("DateTime", std::string(buffer));

if(! params._project.empty())
Expand Down

0 comments on commit 1b7dddd

Please sign in to comment.