[DGD] time fkun

Felix A. Croes felix at dworkin.nl
Sat Jul 11 20:55:38 CEST 1998


Kevin Carpenter <kevinc at kplace.monrou.com> wrote:

> Heres a hopefully simple one:
>
> I recently moved my mud from a RedHat 4.2 Linux environmemt to a
> RedHat 5.1 Linux environment.  This was a binary pickup and move
> of the entire mud account.  All appears to be working fine, except:
>
> A ctime(time()) call is returning a time 5 hours into the future.
>
> Sounds like a timezone problem to me, but a "date" command at the
> shell level reports things correctly.

If this program:

    #include <time.h>
    main() { time_t t; time(&t); printf("%s", ctime(&t)); }

shows the current time when executed, then it is a dynamic library
problem: recompile DGD.  Otherwise it's a system configuration problem.

Dworkin



More information about the DGD mailing list