Changeset 31 for trunk/Meet.php


Ignore:
Timestamp:
Dec 30, 2018, 7:37:55 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Store date of meet items including time. For items without specified time, just use current time (time of import).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Meet.php

    r26 r31  
    328328  var $Name = '';
    329329  var $Message = '';
    330   var $Date = '';
     330  var $Time = '';
    331331  var $Gender = Gender::Undefined;
    332332  var $Phone = '';
     
    347347      '(`Message` = "'.$this->Database->real_escape_string($this->Message).'") AND '.
    348348      '(`Email` = "'.$this->Database->real_escape_string($this->Email).'") AND '.
    349       '(`Date` = "'.$this->Database->real_escape_string(TimeToMysqlDate($this->Date)).'")');
     349      '(`Time` = "'.$this->Database->real_escape_string(TimeToMysqlDateTime($this->Time)).'")');
    350350    if ($DbResult->num_rows == 0)
    351351    {
     
    358358      $this->Database->insert('MeetItem', array(
    359359        'Message' => $this->Message,
    360         'Date' => TimeToMysqlDate($this->Date),
     360        'Time' => TimeToMysqlDateTime($this->Time),
    361361        'Gender' => $this->Gender,
    362362        'Age' => $Age,
Note: See TracChangeset for help on using the changeset viewer.