summaryrefslogtreecommitdiff
path: root/modules/profile/profile.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r--modules/profile/profile.module16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 297d6c0ab..229dc91b5 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -266,13 +266,15 @@ function profile_view_field($user, $field) {
// Note: Avoid PHP's date() because it does not handle dates before
// 1970 on Windows. This would make the date field useless for e.g.
// birthdays.
- $replace = array('d' => sprintf('%02d', $value['day']),
- 'j' => $value['day'],
- 'm' => sprintf('%02d', $value['month']),
- 'M' => map_month($value['month']),
- 'Y' => $value['year'],
- 'H:i' => NULL,
- 'g:ia' => NULL);
+ $replace = array(
+ 'd' => sprintf('%02d', $value['day']),
+ 'j' => $value['day'],
+ 'm' => sprintf('%02d', $value['month']),
+ 'M' => map_month($value['month']),
+ 'Y' => $value['year'],
+ 'H:i' => NULL,
+ 'g:ia' => NULL,
+ );
return strtr($format, $replace);
case 'list':
$values = split("[,\n\r]", $value);