code updates to drupal core and date module