aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-08-05 11:41:55 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-08-05 11:41:55 +0800
commit7dc2a74e0ac9cfa74cc9de6f586ffd5cc8bac0d9 (patch)
treea296e66e2fa5cd3a352ffdcabb2018fbb4199e05 /test
parentb02b960c6bba834d9e7199ac53430c7933079dc8 (diff)
[utils] Fix unified_timestamp for formats parsed by parsedate_tz()
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 2273b5a10..5a2ae4a1e 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -308,6 +308,7 @@ class TestUtil(unittest.TestCase):
self.assertEqual(unified_timestamp('25-09-2014'), 1411603200)
self.assertEqual(unified_timestamp('27.02.2016 17:30'), 1456594200)
self.assertEqual(unified_timestamp('UNKNOWN DATE FORMAT'), None)
+ self.assertEqual(unified_timestamp('May 16, 2016 11:15 PM'), 1463440500)
def test_determine_ext(self):
self.assertEqual(determine_ext('http://example.com/foo/bar.mp4/?download'), 'mp4')