diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-04-04 06:52:59 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-04-04 06:52:59 +0000 |
commit | 616840245b91bc44ab7ef31d8e1e5afdd41cce93 (patch) | |
tree | 664ff88ba177c417458235227943a51f6f5bf054 /modules | |
parent | d87aa9e464b40fa2a00f1fd4f0886ad2b3e754de (diff) | |
download | brdo-616840245b91bc44ab7ef31d8e1e5afdd41cce93.tar.gz brdo-616840245b91bc44ab7ef31d8e1e5afdd41cce93.tar.bz2 |
#56750: Make date profile field work with ISO date format
Diffstat (limited to 'modules')
-rw-r--r-- | modules/profile.module | 2 | ||||
-rw-r--r-- | modules/profile/profile.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile.module b/modules/profile.module index 33422cd38..b37cc59b0 100644 --- a/modules/profile.module +++ b/modules/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. 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. |