Merge pull request #22930 from demeritcowboy/revert-event-timezone
[civicrm-core.git] / CRM / Event / DAO / Event.php
index c19785783a50477f8605762e6ed72036dae35fbc..54ed4922ca46a632064bc153a335ea732d2f554e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Event.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:142b4991959919f73cea72a40b3f4a1d)
+ * (GenCodeChecksum:894f53608aa8036de5fab1dc90a407d5)
  */
 
 /**
@@ -121,8 +121,8 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
   /**
    * Date and time that event starts.
    *
-   * @var string
-   *   (SQL type: timestamp)
+   * @var string|null
+   *   (SQL type: datetime)
    *   Note that values will be retrieved from the database as a string.
    */
   public $start_date;
@@ -130,8 +130,8 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
   /**
    * Date and time that event ends. May be NULL if no defined end date/time
    *
-   * @var string
-   *   (SQL type: timestamp)
+   * @var string|null
+   *   (SQL type: datetime)
    *   Note that values will be retrieved from the database as a string.
    */
   public $end_date;
@@ -157,8 +157,8 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
   /**
    * Date and time that online registration starts.
    *
-   * @var string
-   *   (SQL type: timestamp)
+   * @var string|null
+   *   (SQL type: datetime)
    *   Note that values will be retrieved from the database as a string.
    */
   public $registration_start_date;
@@ -166,8 +166,8 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
   /**
    * Date and time that online registration ends.
    *
-   * @var string
-   *   (SQL type: timestamp)
+   * @var string|null
+   *   (SQL type: datetime)
    *   Note that values will be retrieved from the database as a string.
    */
   public $registration_end_date;
@@ -674,15 +674,6 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
    */
   public $is_billing_required;
 
-  /**
-   * Event's native time zone
-   *
-   * @var string|null
-   *   (SQL type: text)
-   *   Note that values will be retrieved from the database as a string.
-   */
-  public $event_tz;
-
   /**
    * Class constructor.
    */
@@ -865,15 +856,13 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
         ],
         'event_start_date' => [
           'name' => 'start_date',
-          'type' => CRM_Utils_Type::T_TIMESTAMP,
+          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('Event Start Date'),
           'description' => ts('Date and time that event starts.'),
-          'required' => FALSE,
           'import' => TRUE,
           'where' => 'civicrm_event.start_date',
           'headerPattern' => '/^start|(s(tart\s)?date)$/i',
           'export' => TRUE,
-          'default' => NULL,
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -886,15 +875,13 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
         ],
         'event_end_date' => [
           'name' => 'end_date',
-          'type' => CRM_Utils_Type::T_TIMESTAMP,
+          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('Event End Date'),
           'description' => ts('Date and time that event ends. May be NULL if no defined end date/time'),
-          'required' => FALSE,
           'import' => TRUE,
           'where' => 'civicrm_event.end_date',
           'headerPattern' => '/^end|(e(nd\s)?date)$/i',
           'export' => TRUE,
-          'default' => NULL,
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -940,12 +927,10 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
         ],
         'registration_start_date' => [
           'name' => 'registration_start_date',
-          'type' => CRM_Utils_Type::T_TIMESTAMP,
+          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('Registration Start Date'),
           'description' => ts('Date and time that online registration starts.'),
-          'required' => FALSE,
           'where' => 'civicrm_event.registration_start_date',
-          'default' => NULL,
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -959,12 +944,10 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
         ],
         'registration_end_date' => [
           'name' => 'registration_end_date',
-          'type' => CRM_Utils_Type::T_TIMESTAMP,
+          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('Registration End Date'),
           'description' => ts('Date and time that online registration ends.'),
-          'required' => FALSE,
           'where' => 'civicrm_event.registration_end_date',
-          'default' => NULL,
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -1935,27 +1918,6 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           ],
           'add' => '4.6',
         ],
-        'event_tz' => [
-          'name' => 'event_tz',
-          'type' => CRM_Utils_Type::T_TEXT,
-          'title' => ts('Event Time Zone'),
-          'description' => ts('Event\'s native time zone'),
-          'import' => TRUE,
-          'where' => 'civicrm_event.event_tz',
-          'export' => TRUE,
-          'default' => NULL,
-          'table_name' => 'civicrm_event',
-          'entity' => 'Event',
-          'bao' => 'CRM_Event_BAO_Event',
-          'localizable' => 0,
-          'html' => [
-            'type' => 'Select',
-          ],
-          'pseudoconstant' => [
-            'callback' => 'CRM_Core_SelectValues::timezone',
-          ],
-          'add' => '5.43',
-        ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
     }