From 282566271fefb55470490771810453cc391516f1 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Mon, 16 Jun 2003 21:03:12 +0000 Subject: [PATCH] Bugfix: user timezone-selection now uses the site's configured date_format_long value rather than a hardcoded one. --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/user.module b/modules/user.module index 4ca8af7b7d1..417aadd065e 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1032,7 +1032,7 @@ function user_edit($edit = array()) { } $output .= form_item(t("Theme"), "", t("Selecting a different theme will change the look and feel of the site.")); - for ($zone = -43200; $zone <= 46800; $zone += 3600) $zones[$zone] = date("l, F dS, Y - h:i A", time() - date("Z") + $zone) ." (GMT ". $zone / 3600 .")"; + for ($zone = -43200; $zone <= 46800; $zone += 3600) $zones[$zone] = date(variable_get("date_format_long", "l, F dS, Y - g:ia"), time() - date("Z") + $zone) ." (GMT ". $zone / 3600 .")"; $output .= form_select(t("Time zone"), "timezone", $edit["timezone"], $zones, t("Select what time you currently have and your time zone settings will be set appropriate.")); $output .= form_select(t("Language"), "language", $edit["language"], $languages, t("Selecting a different language will change the language of the site.")); $output .= form_item(t("Password"), " ", t("Enter your new password twice if you want to change your current password or leave it blank if you are happy with your current password.")); diff --git a/modules/user/user.module b/modules/user/user.module index 4ca8af7b7d1..417aadd065e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1032,7 +1032,7 @@ function user_edit($edit = array()) { } $output .= form_item(t("Theme"), "", t("Selecting a different theme will change the look and feel of the site.")); - for ($zone = -43200; $zone <= 46800; $zone += 3600) $zones[$zone] = date("l, F dS, Y - h:i A", time() - date("Z") + $zone) ." (GMT ". $zone / 3600 .")"; + for ($zone = -43200; $zone <= 46800; $zone += 3600) $zones[$zone] = date(variable_get("date_format_long", "l, F dS, Y - g:ia"), time() - date("Z") + $zone) ." (GMT ". $zone / 3600 .")"; $output .= form_select(t("Time zone"), "timezone", $edit["timezone"], $zones, t("Select what time you currently have and your time zone settings will be set appropriate.")); $output .= form_select(t("Language"), "language", $edit["language"], $languages, t("Selecting a different language will change the language of the site.")); $output .= form_item(t("Password"), " ", t("Enter your new password twice if you want to change your current password or leave it blank if you are happy with your current password."));