change time column type from date to long

Change-Id: I280bad4ee242ccc28a79667d82a58ae8303437c3