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.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 33422cd38..b37cc59b0 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -530,7 +530,7 @@ function profile_view_field($user, $field) {
case 'url':
return '<a href="'. check_url($value) .'">'. check_plain($value) .'</a>';
case 'date':
- list($format) = explode(' - ', variable_get('date_format_short', 'm/d/Y - H:i'), 2);
+ $format = substr(variable_get('date_format_short', 'm/d/Y - H:i'), 0, 5);
// 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.