use .POSIXct () to convert time to POSIXct; minor fixes