Date picker bug