From 8d9536a24cb7f4a21fb35326819b292e8f87fc20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Thu, 20 Feb 2020 18:46:48 +0100 Subject: [PATCH] Make timestamps reproducible https://gitlab.com/sane-project/backends/issues/228 --- tools/sane-desc.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/sane-desc.c b/tools/sane-desc.c index 890e754..ba85e84 100644 --- a/tools/sane-desc.c +++ b/tools/sane-desc.c @@ -2816,8 +2816,8 @@ html_print_footer (void) "
\n" "Contact\n" "
\n" "\n"); - printf ("This page was last updated on %s by sane-desc %s from %s\n", - asctime (localtime (¤t_time)), SANE_DESC_VERSION, PACKAGE_STRING); + printf ("This page was last updated by sane-desc %s from %s\n", + SANE_DESC_VERSION, PACKAGE_STRING); printf ("\n"); printf (" \n"); } @@ -3326,10 +3326,10 @@ print_usermap_header (void) printf ("# This file was automatically created based on description files (*.desc)\n" - "# by sane-desc %s from %s on %s" + "# by sane-desc %s from %s" "#\n" , - SANE_DESC_VERSION, PACKAGE_STRING, asctime (localtime (¤t_time))); + SANE_DESC_VERSION, PACKAGE_STRING); printf ("# The entries below are used to detect a USB device and change owner\n" @@ -3398,8 +3398,8 @@ print_db_header (void) { time_t current_time = time (0); printf ("# This file was automatically created based on description files (*.desc)\n" - "# by sane-desc %s from %s on %s", - SANE_DESC_VERSION, PACKAGE_STRING, asctime (localtime (¤t_time))); + "# by sane-desc %s from %s", + SANE_DESC_VERSION, PACKAGE_STRING); printf ("#\n" "# The entries below are used to detect a USB device when it's plugged in\n" @@ -3463,8 +3463,8 @@ print_udev_header (void) { time_t current_time = time (0); printf ("# This file was automatically created based on description files (*.desc)\n" - "# by sane-desc %s from %s on %s", - SANE_DESC_VERSION, PACKAGE_STRING, asctime (localtime (¤t_time))); + "# by sane-desc %s from %s", + SANE_DESC_VERSION, PACKAGE_STRING); printf ("#\n" @@ -3656,8 +3656,8 @@ print_udevhwdb_header (void) { time_t current_time = time (0); printf ("# This file was automatically created based on description files (*.desc)\n" - "# by sane-desc %s from %s on %s", - SANE_DESC_VERSION, PACKAGE_STRING, asctime (localtime (¤t_time))); + "# by sane-desc %s from %s", + SANE_DESC_VERSION, PACKAGE_STRING); printf ("#\n" @@ -3766,8 +3766,8 @@ print_hwdb_header (void) { time_t current_time = time (0); printf ("# This file was automatically created based on description files (*.desc)\n" - "# by sane-desc %s from %s on %s", - SANE_DESC_VERSION, PACKAGE_STRING, asctime (localtime (¤t_time))); + "# by sane-desc %s from %s", + SANE_DESC_VERSION, PACKAGE_STRING); printf ("#\n" -- 2.25.1