replace localtime with gmtime()