Fixing bug in date behavior in client controller