accidentally used gmtime() instead of time()