[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#380105: Show current hour in hardware clock question



tags 380105 + patch
thanks

This untested patch should solve this issue.  I'm not sure where in
the template it is best to place the value, and hope someone else can
have a look before commit it.

  * Display current system time when asking if it should use UTC or
    not. (Closes: #380105)

Index: debian/clock-setup.postinst
===================================================================
--- debian/clock-setup.postinst (revisjon 40086)
+++ debian/clock-setup.postinst (arbeidskopi)
@@ -42,6 +42,7 @@
 db_progress STEP 1

 db_input $pri clock-setup/utc || true
+db_subst clock-setup/utc CURRENT_TIME "`date`"
 if ! db_go; then
        exit 10 # back to main menu
 fi
Index: debian/clock-setup.templates
===================================================================
--- debian/clock-setup.templates        (revisjon 40086)
+++ debian/clock-setup.templates        (arbeidskopi)
@@ -8,6 +8,10 @@
 Default: true
 _Description: Is the system clock set to UTC?
  System clocks are generally set to Coordinated Universal Time (UTC).
+ The current system time is now
+ .
+    ${CURRENT_TIME}
+ .
  The operating system uses your time zone to convert system time into
  local time. This is recommended unless you also use another operating
  system that expects the clock to be set to local time.



Reply to: