Changeset 488


Ignore:
Timestamp:
Aug 21, 2004, 3:03:49 PM (20 years ago)
Author:
z0rglub
Message:

date in ISO standard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upload.php

    r394 r488  
    169169    list( $day,$month,$year ) = explode( '/', $_POST['date_creation'] );
    170170    // int checkdate ( int month, int day, int year)
    171     if ( checkdate( $month, $day, $year ) )
    172     {
    173       // int mktime ( int hour, int minute, int second,
    174       //              int month, int day, int year [, int is_dst])
    175       $date_creation = mktime( 0, 0, 0, $month, $day, $year );
     171    if (checkdate($month, $day, $year))
     172    {
     173      $date_creation = $year.'-'.$month.'-'.$day;
    176174    }
    177175    else
     
    182180  // creation of the "infos" field :
    183181  // <infos author="Pierrick LE GALL" comment="my comment"
    184   //        date_creation="1056891767" name="" />
     182  //        date_creation="2004-08-14" name="" />
    185183  $xml_infos = '<infos';
    186184  $xml_infos.= ' author="'.htmlspecialchars($_POST['author'],ENT_QUOTES).'"';
Note: See TracChangeset for help on using the changeset viewer.