=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/checkout.c,v retrieving revision 1.83 retrieving revision 1.84 diff -c -r1.83 -r1.84 *** src/usr.bin/cvs/checkout.c 2007/01/25 23:22:32 1.83 --- src/usr.bin/cvs/checkout.c 2007/01/26 11:19:44 1.84 *************** *** 1,4 **** ! /* $OpenBSD: checkout.c,v 1.83 2007/01/25 23:22:32 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: checkout.c,v 1.84 2007/01/26 11:19:44 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 242,253 **** if (fchmod(cf->fd, 0644) == -1) fatal("cvs_checkout_file: fchmod: %s", strerror(errno)); ! if (exists == 0) { rcstime = rcs_rev_getdate(cf->file_rcs, rnum); ! rcstime = cvs_hack_time(rcstime, 0); ! } else { time(&rcstime); - } tv[0].tv_sec = rcstime; tv[0].tv_usec = 0; --- 242,251 ---- if (fchmod(cf->fd, 0644) == -1) fatal("cvs_checkout_file: fchmod: %s", strerror(errno)); ! if (exists == 0 && cf->file_ent == NULL) rcstime = rcs_rev_getdate(cf->file_rcs, rnum); ! else time(&rcstime); tv[0].tv_sec = rcstime; tv[0].tv_usec = 0; *************** *** 259,267 **** time(&rcstime); } ! rcstime = cvs_hack_time(rcstime, 1); ! ! ctime_r(&rcstime, tbuf); if (tbuf[strlen(tbuf) - 1] == '\n') tbuf[strlen(tbuf) - 1] = '\0'; --- 257,263 ---- time(&rcstime); } ! asctime_r(gmtime(&rcstime), tbuf); if (tbuf[strlen(tbuf) - 1] == '\n') tbuf[strlen(tbuf) - 1] = '\0';