]> granicus.if.org Git - imagemagick/commitdiff
Corrected writing the time because this has changed to UTC.
authorDirk Lemstra <dirk@lemstra.org>
Sat, 20 Apr 2019 18:43:04 +0000 (20:43 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Sat, 20 Apr 2019 18:43:04 +0000 (20:43 +0200)
coders/cin.c

index cee28577da83df220b04a4ae10e17492f8536828..bc83e3ce76656521b0d010eda7d20f7ea41e888e 100644 (file)
@@ -1090,9 +1090,8 @@ static MagickBooleanType WriteCINImage(const ImageInfo *image_info,Image *image,
       sizeof(cin.origination.filename));
   offset+=WriteBlob(image,sizeof(cin.origination.filename),(unsigned char *)
     cin.origination.filename);
-  seconds=GetMagickTime();
   (void) memset(timestamp,0,sizeof(timestamp));
-  (void) strftime(timestamp,MagickPathExtent,"%Y:%m:%d:%H:%M:%S%Z",&local_time);
+  (void) strftime(timestamp,MaxTextExtent,"%Y:%m:%d:%H:%M:%SUTC",&local_time);
   (void) memset(cin.origination.create_date,0,
     sizeof(cin.origination.create_date));
   (void) CopyMagickString(cin.origination.create_date,timestamp,11);