[rt-users] localtime(time) problem
Ron Alexander
ralexander at musiciansfriend.com
Fri May 16 13:14:18 EDT 2003
I want to insert the current date and time into the Starts field on
Ticket Creation. I figured I could do this with localtime(time). This
works in a normal perl script. But when I try to include it in the
Create.html like so:
Starts:</TD><TD><input size=10 name="Starts" value="<%
localtime(time)%>" >
I get this out:
2481016410351351
Which, in addition to being unreadable, translates to:
Wed Dec 31 15:59:59 1969
--
/************************************************************
* Ron Alexander ralexander at musiciansfriend.com *
* Programmer/Analyst Musician's Friend, Inc.*
* Phone:(541)774-5362 http://www.musiciansfriend.com *
************************************************************/
More information about the rt-users
mailing list