Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!hsdndev!cmcl2!adm!news From: wolf@grasp1.univ-lyon1.fr (Christophe Wolfhugel) Newsgroups: comp.unix.questions Subject: Time problem Message-ID: <26612@adm.brl.mil> Date: 21 Apr 91 09:01:47 GMT Sender: news@adm.brl.mil Lines: 27 I've a strange problem with a ftpd that I've modified to run under AIX 2.2.1 20:54:02, a user connect my ftpd and it answers (code is below): --> 230 Local (MET, GMT+1) time is: Sun Apr 21 02:54:02 1991 The syslog also registered 02:54 A few minutes later I connect to that place 20:56:46, that's me connected to the ftpd. --> 230 Local (MET, GMT+1) time is: Sat Apr 20 20:56:46 1991 Of course the syslog registered 20:56. Strange... This is going backwards. Here's the piece of code generating the 230 message (the one generated for the syslog is done by the system). | time(&t); strncpy(buf,ctime(&t),24); buf[24]=0; | printf("\r\n230 Local (MET, GMT+1) time is: %s\r\n",buf); My question: is there somewhere, in the ftp process, system socket handling something that would fool the system time and give me something totally wrong? -- - Wolf (wolf@grasp1.univ-lyon1.fr