Commit d4d6672
committed
Changed cast_to_datetime method to use Time.parse in the
method string_to_time and to return Time objects based on
the Base.default_timezone.
Time.parse uses the timezone to create the time object while the new_time
method discards this timezone info. Also, some code paths were not
storing the value as utc even though the Base.default_timezon was utc.
TODO: Unsure if the cast_to_time method needs to also use string_to_time1 parent 90d7844 commit d4d6672
1 file changed
+9
-18
lines changedLines changed: 9 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 152 | + | |
| 153 | + | |
166 | 154 | | |
167 | | - | |
168 | 155 | | |
169 | 156 | | |
170 | 157 | | |
| |||
175 | 162 | | |
176 | 163 | | |
177 | 164 | | |
178 | | - | |
179 | 165 | | |
180 | | - | |
181 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
182 | 173 | | |
183 | 174 | | |
184 | 175 | | |
| |||
0 commit comments