Add sample init script and fix date issue