summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 37a999d31..1ba5d3ddb 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -499,10 +499,10 @@ function format_date($timestamp, $type = "medium", $format = "") {
switch ($type) {
case "small":
- $date = date("m/d/y - H:i", $timestamp);
+ $date = date(variable_get("date_format", "m/d/Y - H:i"), $timestamp);
break;
case "medium":
- $date = t(date("l", $timestamp)) .", ". date("m/d/Y - H:i", $timestamp);
+ $date = t(date("l", $timestamp)) .", ". date(variable_get("date_format", "m/d/Y - H:i"), $timestamp);
break;
case "large":
$date = t(date("l", $timestamp)) .", ". t(date("F", $timestamp)) ." ". date("d, Y - H:i", $timestamp);
@@ -521,7 +521,7 @@ function format_date($timestamp, $type = "medium", $format = "") {
}
break;
default:
- $date = t(date("l", $timestamp)) .", ". date("m/d/Y - H:i", $timestamp);
+ $date = t(date("l", $timestamp)) .", ". date(variable_get("date_format", "m/d/Y - H:i"), $timestamp);
}
return $date;
}