Gossamer Forum
Home : Products : DBMan : Installation :

Stupid date tricks

Quote Reply
Stupid date tricks
OK, I spent all day adding and validating all of JP Deni's marvelous modifications (and others), installed all of the stuff. Everything is fine, except the date I get from the &get_date routine looks like this: 08-Aug-2100. Obviously, I have not teleported ahead a century; plus I am just learning PERL. How do I fix this?

Thanks,

Bob

Quote Reply
Re: Stupid date tricks In reply to
Have you messed with your get_date sub-routine? If so, could you post it for us? Otherwise, it might be a problem with your web server's system clock. You should probobly contact the admin.

- Mark

Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: Stupid date tricks In reply to
Just a little bit. I looked at it, saw a -1900 and thought that was it. So I changed that to -2000, now I get 08-Aug-100. I am suspecting system clock, but I want to make sure I've covered my PERL tracks first.

Thanks,

Bob

p.s. I do hospital consulting (rarely web or IS related) we should talk sometime.

Quote Reply
Re: Stupid date tricks In reply to
The line in sub get_date should be

$year = $year + 1900;

If it's anything else, the year won't be right.

JPD
http://www.jpdeni.com/dbman/