We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43a6efc commit ae9b0b8Copy full SHA for ae9b0b8
src/mock_vws/_mock_web_query_api.py
@@ -302,9 +302,17 @@ def validate_date_format(
302
# We expect that more formats than this will be accepted.
303
# These are the accepted ones we know of at the time of writing.
304
known_accepted_formats = {
305
- '%a, %d %b %Y %H:%M:%S GMT',
+ '%a, %b %d %H:%M:%S %Y',
306
+ '%a %b %d %H:%M:%S %Y',
307
+ '%a, %d %b %Y %H:%M:%S',
308
+ '%a %d %b %Y %H:%M:%S',
309
}
310
311
+ formats_with_timezones = set(item + ' GMT' for item in known_accepted_formats)
312
+
313
+ formats = known_accepted_formats.union(formats_with_timezones)
314
+ import pdb; pdb.set_trace()
315
316
try:
317
datetime.datetime.strptime(
318
request.headers['Date'],
0 commit comments