I have just upgraded to rc5 from rc4, but in both version all date fields were not displaying at all.
They were not displaying in normal views or on nodes.
It does display the time of the field in the calendar.
I had a look at the date.theme file and all date objects were being sent through as NULL.
I have tested this with dates and datestamp fields.
I have also ruled out my theme by testing the site in garland.
Version info:
OS: Debian etch
PHP: 5.2.0-8 (AS FastCGI)
DB: mySQL 5.0.32
Webserver: Apache/1.3.34
Drupal: 5.9
CCK: 5.x-1.7
Views: 5.x-1.6
Calendar: 5.x-2.0-rc3
Date + Date API + Date Popup + Date Timezone: 5.x-2.0-rc5
Any ideas or where I should be looking.
I hope its something I did, because then it would be easy to fix, but I don’t think so.
Let me know if you need any more info.
Output from one the theme function:
[field_test_date] => Array
(
[0] => Array
(
[value] => 2008-08-21T16:34:00
)
...
[field_date] => Array
(
[0] => Array
(
[value] => 1218180600
[value2] => 1218180600
[view] =>
)
)
Out put from a node:
[field_date] => Array
(
[0] => Array
(
[value] => 1218180600
[value2] => 1218180600
)
)
...
[field_test_date] => Array
(
[0] => Array
(
[value] => 2008-08-21T16:34:00
)
)
...
[field] => Array
(
[field_name] => field_date
[type] => datestamp
[required] => 1
[multiple] => 0
[db_storage] => 1
[granularity] => Array
(
[year] => year
[month] => month
[day] => day
[hour] => hour
[minute] => minute
)
[timezone_db] => UTC
[tz_handling] => site
[todate] => optional
[repeat] => 0
[repeat_collapsed] =>
[output_format_date] => j F Y - g:ia
[output_format_custom] =>
[output_format_date_long] => l, F j, Y - H:i
[output_format_custom_long] =>
[output_format_date_medium] => D, m/d/Y - H:i
[output_format_custom_medium] =>
[output_format_date_short] => m/d/Y - H:i
[output_format_custom_short] =>
[widget] => Array
(
[default_value] => strtotime
[default_value_code] => +1 day
[default_value2] => blank
[default_value_code2] =>
[input_format] => d/m/Y H:i:s
[input_format_custom] =>
[increment] => 1
[text_parts] => Array
(
)
[year_range] => -3:+3
[label_position] => above
[type] => date_popup
[weight] => -1
[label] => Date
[description] =>
)
[type_name] => event
[display_settings] => Array
(
[label] => Array
(
[format] => inline
)
[teaser] => Array
(
[format] => medium
)
[full] => Array
(
[format] => long
)
)
)
[field_type] => datestamp
[field_name] => field_date
[field_type_css] => datestamp
[field_name_css] => field-date
[label] => Date
[label_display] => inline
[field_empty] => 1
[items] => Array
(
[0] => Array
(
[value] => 1218180600
[value2] => 1218180600
[view] =>
)
)
Comments
Comment #1
batbug2 CreditAttribution: batbug2 commentedI second that, exactly the same scenario. But if i go back to rc4, dates display again normally
Comment #2
KarenS CreditAttribution: KarenS commentedFound the fix, a stupid typo in the new theme_date_all_day() function in date.theme. The first line should say !is_object($date1) instead of !is_object($date).
I'm trying to commit the fix, but it's not going through right now. You can try making that change manually, though.
Comment #3
KarenS CreditAttribution: KarenS commentedThis fix is now committed.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.