From a7c9db43fbeda92560a0180df4ca17206a6aec7f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 30 Oct 2016 17:09:59 +0000 Subject: use -1 for INVALID_EPOCH_VALUE git-svn-id: svn://tug.org/texlive/trunk@42383 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipsk/output.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Build/source/texk/dvipsk/output.c') diff --git a/Build/source/texk/dvipsk/output.c b/Build/source/texk/dvipsk/output.c index fa57daaa1a1..14615db3eeb 100644 --- a/Build/source/texk/dvipsk/output.c +++ b/Build/source/texk/dvipsk/output.c @@ -90,7 +90,7 @@ static time_t jobtime; #define strtoll _strtoi64 #endif -#define INVALID_EPOCH_VALUE 0x7fffffffffffffffULL +#define INVALID_EPOCH_VALUE ((time_t) -1) static time_t get_unique_time_if_given(void) @@ -1421,12 +1421,8 @@ initprinter(sectiontype *sect) jobtime = get_unique_time_if_given(); if (jobtime == INVALID_EPOCH_VALUE) { jobtime = time(0); - fprintf(bitfile, "%%%%CreationDate: %s", - asctime(localtime(&jobtime))); - } else { - fprintf(bitfile, "%%%%CreationDate: %s", - asctime(gmtime(&jobtime))); } + fprintf(bitfile, "%%%%CreationDate: %s", asctime(gmtime(&jobtime))); #endif if (! isepsf) { /* -- cgit v1.2.3