hour - based context I would like to add body classes by context depending on the time of the day. One class for the morning, another for the midday, another for evening. 
I expected the context date  module to do thatm, but it does not work when I do not put the date in (i.e. it accepts the condition, but there's a bug and the whole condition disappears afterwards). 
Any ideas?
If you are adding classes which will be styled by your theme then it is best to add them with the theme in template.php. Each theme might handle this differently.

For example, if your theme is based on Fusion then you can add new classes by implementing hook_core_preprocess_html()

&lt;?php
function mytheme_core_preprocess_html(&amp;$vars) {
    $vars['classes_array'][] = mytheme_hour_based_class();
}

function mytheme_hour_based_class() {
    // Return a CSS class based on the current 24 hour time
    return 'hour-of-day-'. date('H');
}
?&gt;


If there isn't an existing context module which serves your purpose then you would have to create your own module which implements the context API. You can learn about the context API here.

http://drupalcontrib.org/api/drupal/contributions!context!context.api.php/7

Telling you how to do that would essentially require writing the module for you, which seems outside the scope of an answer.