fixed namespace bug for datetime