@@ 65-73 (lines=9) @@ | ||
62 | 'allowInputToggle' => true, |
|
63 | ]; |
|
64 | ||
65 | if ($this->type == 'date') { |
|
66 | $options['format'] = 'YYYY-MM-DD'; |
|
67 | } elseif ($this->type == 'time') { |
|
68 | $options['format'] = 'HH:mm:ss'; |
|
69 | } elseif ($this->type == 'datetime') { |
|
70 | $options['format'] = 'YYYY-MM-DD HH:mm:ss'; |
|
71 | } else { |
|
72 | return; |
|
73 | } |
|
74 | ||
75 | $options = json_encode($options); |
|
76 |
@@ 60-68 (lines=9) @@ | ||
57 | 'allowInputToggle' => true, |
|
58 | ]; |
|
59 | ||
60 | if ($this->type == 'date') { |
|
61 | $options['format'] = 'YYYY-MM-DD'; |
|
62 | } elseif ($this->type == 'time') { |
|
63 | $options['format'] = 'HH:mm:ss'; |
|
64 | } elseif ($this->type == 'datetime') { |
|
65 | $options['format'] = 'YYYY-MM-DD HH:mm:ss'; |
|
66 | } else { |
|
67 | return; |
|
68 | } |
|
69 | ||
70 | $options = json_encode($options); |
|
71 |