@@ 176-187 (lines=12) @@ | ||
173 | if config.utc_offset[0] == '-': |
|
174 | timezone_offset = -timezone_offset |
|
175 | ||
176 | if created_datetime_local is None: |
|
177 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
178 | description="API.INVALID_CREATED_DATETIME") |
|
179 | else: |
|
180 | created_datetime_local = str.strip(created_datetime_local) |
|
181 | try: |
|
182 | created_datetime_utc = datetime.strptime(created_datetime_local, |
|
183 | '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc) - \ |
|
184 | timedelta(minutes=timezone_offset) |
|
185 | except ValueError: |
|
186 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
187 | description="API.INVALID_CREATED_DATETIME") |
|
188 | ||
189 | if scheduled_datetime_local is None: |
|
190 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
@@ 387-398 (lines=12) @@ | ||
384 | if config.utc_offset[0] == '-': |
|
385 | timezone_offset = -timezone_offset |
|
386 | ||
387 | if created_datetime_local is None: |
|
388 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
389 | description="API.INVALID_CREATED_DATETIME") |
|
390 | else: |
|
391 | created_datetime_local = str.strip(created_datetime_local) |
|
392 | try: |
|
393 | created_datetime_utc = datetime.strptime(created_datetime_local, |
|
394 | '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc) - \ |
|
395 | timedelta(minutes=timezone_offset) |
|
396 | except ValueError: |
|
397 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
398 | description="API.INVALID_CREATED_DATETIME") |
|
399 | ||
400 | if scheduled_datetime_local is None: |
|
401 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
@@ 1481-1492 (lines=12) @@ | ||
1478 | if config.utc_offset[0] == '-': |
|
1479 | timezone_offset = -timezone_offset |
|
1480 | ||
1481 | if created_datetime_local is None: |
|
1482 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
1483 | description="API.INVALID_CREATED_DATETIME") |
|
1484 | else: |
|
1485 | created_datetime_local = str.strip(created_datetime_local) |
|
1486 | try: |
|
1487 | created_datetime_utc = datetime.strptime(created_datetime_local, |
|
1488 | '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc) - \ |
|
1489 | timedelta(minutes=timezone_offset) |
|
1490 | except ValueError: |
|
1491 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
1492 | description="API.INVALID_CREATED_DATETIME") |
|
1493 | ||
1494 | if scheduled_datetime_local is None: |
|
1495 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
@@ 1284-1295 (lines=12) @@ | ||
1281 | if config.utc_offset[0] == '-': |
|
1282 | timezone_offset = -timezone_offset |
|
1283 | ||
1284 | if created_datetime_local is None: |
|
1285 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
1286 | description="API.INVALID_CREATED_DATETIME") |
|
1287 | else: |
|
1288 | created_datetime_local = str.strip(created_datetime_local) |
|
1289 | try: |
|
1290 | created_datetime_utc = datetime.strptime(created_datetime_local, |
|
1291 | '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc) - \ |
|
1292 | timedelta(minutes=timezone_offset) |
|
1293 | except ValueError: |
|
1294 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
1295 | description="API.INVALID_CREATED_DATETIME") |
|
1296 | ||
1297 | if scheduled_datetime_local is None: |
|
1298 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
@@ 406-417 (lines=12) @@ | ||
403 | if config.utc_offset[0] == '-': |
|
404 | timezone_offset = -timezone_offset |
|
405 | ||
406 | if created_datetime_local is None: |
|
407 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
408 | description="API.INVALID_CREATED_DATETIME") |
|
409 | else: |
|
410 | created_datetime_local = str.strip(created_datetime_local) |
|
411 | try: |
|
412 | created_datetime_utc = datetime.strptime(created_datetime_local, |
|
413 | '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc) - \ |
|
414 | timedelta(minutes=timezone_offset) |
|
415 | except ValueError: |
|
416 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
417 | description="API.INVALID_CREATED_DATETIME") |
|
418 | ||
419 | if scheduled_datetime_local is None: |
|
420 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
@@ 187-198 (lines=12) @@ | ||
184 | if config.utc_offset[0] == '-': |
|
185 | timezone_offset = -timezone_offset |
|
186 | ||
187 | if created_datetime_local is None: |
|
188 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
189 | description="API.INVALID_CREATED_DATETIME") |
|
190 | else: |
|
191 | created_datetime_local = str.strip(created_datetime_local) |
|
192 | try: |
|
193 | created_datetime_utc = datetime.strptime(created_datetime_local, |
|
194 | '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc) - \ |
|
195 | timedelta(minutes=timezone_offset) |
|
196 | except ValueError: |
|
197 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
198 | description="API.INVALID_CREATED_DATETIME") |
|
199 | ||
200 | if scheduled_datetime_local is None: |
|
201 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
@@ 358-369 (lines=12) @@ | ||
355 | if config.utc_offset[0] == '-': |
|
356 | timezone_offset = -timezone_offset |
|
357 | ||
358 | if created_datetime_local is None: |
|
359 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
360 | description="API.INVALID_CREATED_DATETIME") |
|
361 | else: |
|
362 | created_datetime_local = str.strip(created_datetime_local) |
|
363 | try: |
|
364 | created_datetime_utc = datetime.strptime(created_datetime_local, |
|
365 | '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc) - \ |
|
366 | timedelta(minutes=timezone_offset) |
|
367 | except ValueError: |
|
368 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
369 | description="API.INVALID_CREATED_DATETIME") |
|
370 | ||
371 | if scheduled_datetime_local is None: |
|
372 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
@@ 162-173 (lines=12) @@ | ||
159 | if config.utc_offset[0] == '-': |
|
160 | timezone_offset = -timezone_offset |
|
161 | ||
162 | if created_datetime_local is None: |
|
163 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
164 | description="API.INVALID_CREATED_DATETIME") |
|
165 | else: |
|
166 | created_datetime_local = str.strip(created_datetime_local) |
|
167 | try: |
|
168 | created_datetime_utc = datetime.strptime(created_datetime_local, |
|
169 | '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc) - \ |
|
170 | timedelta(minutes=timezone_offset) |
|
171 | except ValueError: |
|
172 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
|
173 | description="API.INVALID_CREATED_DATETIME") |
|
174 | ||
175 | if scheduled_datetime_local is None: |
|
176 | raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |