[Tickets #14803] Re: Horde_Rdo_Mapper sets created_at, forgets updated_at

noreply at bugs.horde.org noreply at bugs.horde.org
Mon Apr 23 21:03:44 UTC 2018


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: https://bugs.horde.org/ticket/14803
------------------------------------------------------------------------------
  Ticket           | 14803
  Aktualisiert Von | birnbacs at gmail.com
  Zusammenfassung  | Horde_Rdo_Mapper sets created_at, forgets updated_at
  Warteschlange    | Horde Framework Packages
  Typ              | Bug
  Status           | Unconfirmed
  Priorität        | 1. Low
  Milestone        |
  Patch            |
  Zuständige       |
------------------------------------------------------------------------------


birnbacs at gmail.com (2018-04-23 21:03) hat geschrieben:

I found another little bug in Mapper.php. Function create (line 343  
ff.) should also use the Horde_Date object:

     public function create($fields)
     {
         // If configured to record creation and update times, set them
         // here. We set updated_at to the initial creation time so it's
         // always set.
         if ($this->_setTimestamps) {
             $time = time();
             $fields['created_at'] = new Horde_Date(time()); //$time;
             $fields['updated_at'] = new Horde_Date(time()); //$time;
         }





More information about the bugs mailing list