@@ 88-90 (lines=3) @@ | ||
85 | if ($this->start_date !== NULL && $this->start_date != (new \DateTime('1970-01-01'))) { |
|
86 | $start_date = $this->start_date->format('Y-m-d'); |
|
87 | } |
|
88 | if ($this->end_date !== NULL && $this->end_date != (new \DateTime('2999-12-31'))) { |
|
89 | $end_date = $this->end_date->format('Y-m-d'); |
|
90 | } |
|
91 | ||
92 | // Finally, build out the constraint text string adding components |
|
93 | // as necessary. |
@@ 123-125 (lines=3) @@ | ||
120 | if ($this->start_date !== NULL && $this->start_date != (new \DateTime('1970-01-01'))) { |
|
121 | $start_date = $this->start_date->format('Y-m-d'); |
|
122 | } |
|
123 | if ($this->end_date !== NULL && $this->end_date != (new \DateTime('2999-12-31'))) { |
|
124 | $end_date = $this->end_date->format('Y-m-d'); |
|
125 | } |
|
126 | ||
127 | // Next create replacement placeholders to be used in t() below. |
|
128 | $args = array( |