#if defined(PNG_tIME_SUPPORTED)
static void write_tIME_chunk(Image *image,png_struct *ping,png_info *info,
- const char *date,ExceptionInfo *exception)
+ const char *timestamp,ExceptionInfo *exception)
{
- const char
- *timestamp;
-
int
ret;
png_time
ptime;
- if (date == (const char *) NULL)
- timestamp=GetImageProperty(image,"date:modify",exception);
- else
- timestamp=date;
-
+ assert(timestamp != (const char *) NULL);
LogMagickEvent(CoderEvent,GetMagickModule(),
" Writing tIME chunk: timestamp property is %30s\n",timestamp);
ret=sscanf(timestamp,"%d-%d-%dT%d:%d:%d",&year,&month,&day,&hour,