fix RT::Date usage.