summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/pdfencrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfencrypt.c')
-rw-r--r--Build/source/texk/dvipdfm-x/pdfencrypt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfencrypt.c b/Build/source/texk/dvipdfm-x/pdfencrypt.c
index b039be1f50c..1771fff722d 100644
--- a/Build/source/texk/dvipdfm-x/pdfencrypt.c
+++ b/Build/source/texk/dvipdfm-x/pdfencrypt.c
@@ -127,9 +127,12 @@ pdf_enc_compute_id_string (char *dviname, char *pdfname)
date_string = NEW(15, char);
current_time = get_unique_time_if_given();
- if (current_time == 0)
+ if (current_time == 0) {
time(&current_time);
- bd_time = localtime(&current_time);
+ bd_time = localtime(&current_time);
+ } else {
+ bd_time = gmtime(&current_time);
+ }
sprintf(date_string, "%04d%02d%02d%02d%02d%02d",
bd_time->tm_year + 1900, bd_time->tm_mon + 1, bd_time->tm_mday,
bd_time->tm_hour, bd_time->tm_min, bd_time->tm_sec);