added console log for time, changed time to unix