Ignore:
Timestamp:
Oct 17, 2006, 5:20:52 PM (15 years ago)
Author:
Dominic Hargreaves
Message:

remove use of Date::Format (fixes #15)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/cgi/submit.fcgi

    r47 r70  
    77use CGI::Fast qw/:standard -debug/;
    88use Geo::Postcode;
    9 use Date::Format;
    109
    1110use vars qw($dbname $dbhost $dbuser $dbpass);
     
    120119    }
    121120
    122     $sth = $dbh->prepare('INSERT INTO postcodes (outward, inward, raw_postcode, easting, northing, ip, created_at, source) VALUES (?, ?, ?, ?, ?, ?, ?, 0)');
    123     if ($sth->execute($outward, $inward, $raw_postcode, $easting, $northing, $ENV{'REMOTE_ADDR'}, time2str('%Y-%m-%d %H:%M:%S', time))) {
     121    $sth = $dbh->prepare('INSERT INTO postcodes (outward, inward, raw_postcode, easting, northing, ip, source) VALUES (?, ?, ?, ?, ?, ?, 0)');
     122    if ($sth->execute($outward, $inward, $raw_postcode, $easting, $northing, $ENV{'REMOTE_ADDR'})) {
    124123        print "Content-type: text/html\n\n";
    125124        print "<html><head><title>Thank you</title></head>\n";
Note: See TracChangeset for help on using the changeset viewer.