Numerous fixes for 1.2.x compatibility, particularly relating to date issues.