{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":27086567,"defaultBranch":"master","name":"dateparser","ownerLogin":"scrapinghub","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2014-11-24T17:30:12.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/699596?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1706451033.0","currentOid":""},"activityList":{"items":[{"before":"f65936408e24ede5a4e3c05f624323bfc474c585","after":"748e48aec2aa87a2ad95fe4e0ec3216fcfaae1ab","ref":"refs/heads/master","pushedAt":"2024-04-08T15:27:15.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"wRAR","name":"Andrey Rakhmatullin","path":"/wRAR","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/241039?s=80&v=4"},"commit":{"message":"Fix date_parser with prefer_month_of_year wrong results (#1224)\n\n* Fix date_parser with prefer_month_of_year wrong results\r\n\r\nFix two problems\r\n1. Parser would use current month even if prefer_month_of_year was not\r\n current when relative_base was not none\r\n\r\n2. Parser would use current month to derive 'what is the last day of\r\n this month' - for example, with prefer_month=last and\r\n prefer_day=past, but current_month=april, it would return december\r\n 30th, because it would use april to find that the last day was the\r\n 30th, when it should use the month.\r\n\r\nAdditionally, add a test to test_date_parser that uses prefer_month\r\n\r\n* Run pre-commit\r\n\r\n* Update test_dates_parse_utc_offset_does_not_throw to expect January\r\n\r\nIt is parsing \"0:4\", french, with settings\r\n```\r\n \"PREFER_DATES_FROM\": \"past\",\r\n \"PREFER_DAY_OF_MONTH\": \"first\",\r\n \"PREFER_LOCALE_DATE_ORDER\": True,\r\n \"PREFER_MONTH_OF_YEAR\": \"current\",\r\n \"RELATIVE_BASE\": datetime(\r\n year=1970, month=1, day=1, hour=0, minute=0, second=0\r\n ),\r\n```\r\nIt used to expect to get `expected_date=datetime(1969, 12, 31, 14, 4)` but after my change it gets `datetime(1969, 1, 31, 14, 4)`\r\nI would argue that with PREFER_MONTH_OF_YEAR set to \"Current\", and \"Current\" being January 1st 1970, that `datetime(1969, 1, 31, 14, 4)` is a better result\r\nHowever with this particular set of configuration, I am not exactly 100% sure what to expect. These settings were generated by a fuzzer so perhaps they don't really make a ton of sense together anyway; rather than change the settings (and thus deviate from what the parser caught) I have opted to update the test expectation to accept January.\r\n\r\n* Update German test_search_and_parse to accept January for parsing of\r\n'Die'\r\n\r\nIt is searching a German string for dates and asserting that when it finds the word \"Die\" in the string, it should be parsed as `datetime.datetime(1999, 12, 28, 0, 0)`\r\nSimilarly, my change makes this `datetime.datetime(1999, 1, 28, 0, 0)` instead. I don't speak German, but as far as I can tell \"Die\" just means \"The\" so I have no idea why it is even matching it. In my opinion, this could be a bug with the search identifying a non-date word, and so I can't really guess as to what a sensible result would be. For the sake of simplicity, I also just updated this test to accept January,\r\n\r\n---------\r\n\r\nCo-authored-by: Adrián Chaves ","shortMessageHtmlLink":"Fix date_parser with prefer_month_of_year wrong results (#1224)"}},{"before":"29b1f94cd87c073ffbb93b44ecfeb5bbff9969e3","after":"f65936408e24ede5a4e3c05f624323bfc474c585","ref":"refs/heads/master","pushedAt":"2024-03-05T11:29:54.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Check for derived types for configuration (#1223)","shortMessageHtmlLink":"Check for derived types for configuration (#1223)"}},{"before":"1d4b05875d2ee35987607f8e33efa4c8df74dfb2","after":"29b1f94cd87c073ffbb93b44ecfeb5bbff9969e3","ref":"refs/heads/master","pushedAt":"2024-02-16T19:33:37.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Parse some abbreviated strings as relative dates (#1219)","shortMessageHtmlLink":"Parse some abbreviated strings as relative dates (#1219)"}},{"before":"30e2c7f24d035430b255b5990790e61afe81c0b5","after":"1d4b05875d2ee35987607f8e33efa4c8df74dfb2","ref":"refs/heads/master","pushedAt":"2024-02-01T14:28:20.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Migrate from hijri-converter to hijridate (#1211)","shortMessageHtmlLink":"Migrate from hijri-converter to hijridate (#1211)"}},{"before":"1bea64da068c18993d4f4d852a26cdcb2d7f1ba2","after":"45bd628b5f15c338742b22aa043a6d200dd4efa1","ref":"refs/heads/fix-short-weekday-names-1170","pushedAt":"2024-01-30T18:24:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"adnan-awan","name":"Adnan Awan","path":"/adnan-awan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8321367?s=80&v=4"},"commit":{"message":"[dateparser] Fix parsing very short weekday names\n\n- Develop method to remove_multiple_occurrences of the day(s) of the week\n- https://github.com/scrapinghub/dateparser/issues/1170","shortMessageHtmlLink":"[dateparser] Fix parsing very short weekday names"}},{"before":"30e2c7f24d035430b255b5990790e61afe81c0b5","after":"1bea64da068c18993d4f4d852a26cdcb2d7f1ba2","ref":"refs/heads/fix-short-weekday-names-1170","pushedAt":"2024-01-30T07:53:18.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"adnan-awan","name":"Adnan Awan","path":"/adnan-awan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8321367?s=80&v=4"},"commit":{"message":"[dateparser] Fix parsing very short weekday names\n\n- Update en.yaml file to support two letters days of the week\n- https://github.com/scrapinghub/dateparser/issues/1170","shortMessageHtmlLink":"[dateparser] Fix parsing very short weekday names"}},{"before":"1e4c73ce0be4c2e03edb8823e90d710b94ca4be1","after":"30e2c7f24d035430b255b5990790e61afe81c0b5","ref":"refs/heads/fix-short-weekday-names-1170","pushedAt":"2024-01-30T05:33:18.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"adnan-awan","name":"Adnan Awan","path":"/adnan-awan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8321367?s=80&v=4"},"commit":{"message":"README: correct settings link under Key Features (#1210)","shortMessageHtmlLink":"README: correct settings link under Key Features (#1210)"}},{"before":"f638325d22ce704c614094c0e482755b011e71f9","after":"1e4c73ce0be4c2e03edb8823e90d710b94ca4be1","ref":"refs/heads/fix-short-weekday-names-1170","pushedAt":"2024-01-28T14:15:37.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"adnan-awan","name":"Adnan Awan","path":"/adnan-awan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8321367?s=80&v=4"},"commit":{"message":"[dateparser] Fix parsing very short weekday names\n\n- Add three letter name for `wednesday`\n- https://github.com/scrapinghub/dateparser/issues/1170","shortMessageHtmlLink":"[dateparser] Fix parsing very short weekday names"}},{"before":"90a10bf1b0e81dcfe0fdb3f3d0691a40182dc7c5","after":"f638325d22ce704c614094c0e482755b011e71f9","ref":"refs/heads/fix-short-weekday-names-1170","pushedAt":"2024-01-28T14:11:40.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"adnan-awan","name":"Adnan Awan","path":"/adnan-awan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8321367?s=80&v=4"},"commit":{"message":"[dateparser] Fix parsing very short weekday names\n\n- https://github.com/scrapinghub/dateparser/issues/1170","shortMessageHtmlLink":"[dateparser] Fix parsing very short weekday names"}},{"before":null,"after":"90a10bf1b0e81dcfe0fdb3f3d0691a40182dc7c5","ref":"refs/heads/fix-short-weekday-names-1170","pushedAt":"2024-01-28T14:10:33.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"adnan-awan","name":"Adnan Awan","path":"/adnan-awan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8321367?s=80&v=4"},"commit":{"message":"[dateparser] Fix parsing very short weekday names\n\n- https://github.com/scrapinghub/dateparser/issues/1042","shortMessageHtmlLink":"[dateparser] Fix parsing very short weekday names"}},{"before":"1bb5b42d4d17621cd77b8310961bfe4e00782589","after":"30e2c7f24d035430b255b5990790e61afe81c0b5","ref":"refs/heads/master","pushedAt":"2024-01-24T16:47:49.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"README: correct settings link under Key Features (#1210)","shortMessageHtmlLink":"README: correct settings link under Key Features (#1210)"}},{"before":"5355e866170283157b95f409bb187963414c5068","after":"1bb5b42d4d17621cd77b8310961bfe4e00782589","ref":"refs/heads/master","pushedAt":"2024-01-15T13:12:51.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Fixed ClusterFuzz build error by adding dateparserr.data as a binary (#1208)","shortMessageHtmlLink":"Fixed ClusterFuzz build error by adding dateparserr.data as a binary (#…"}},{"before":"b3546690590bc6a73f54017f1be52f8c66197aa2","after":"5355e866170283157b95f409bb187963414c5068","ref":"refs/heads/master","pushedAt":"2023-12-21T09:38:13.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Fix an issue detected by OSSFuzz (#1203)","shortMessageHtmlLink":"Fix an issue detected by OSSFuzz (#1203)"}},{"before":"5bddb9f8126e39156fa692c0ba96ae9a965ca7aa","after":"b3546690590bc6a73f54017f1be52f8c66197aa2","ref":"refs/heads/master","pushedAt":"2023-12-20T07:26:38.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Skip a test that requires 64-bit time_t if it breaks. (#1205)","shortMessageHtmlLink":"Skip a test that requires 64-bit time_t if it breaks. (#1205)"}},{"before":null,"after":"057fcb32e9f86b9e76d2651c7b5b5226fae26f6d","ref":"refs/heads/32bit","pushedAt":"2023-12-19T19:21:12.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"wRAR","name":"Andrey Rakhmatullin","path":"/wRAR","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/241039?s=80&v=4"},"commit":{"message":"Skip a test that requires 64-bit time_t if it breaks.","shortMessageHtmlLink":"Skip a test that requires 64-bit time_t if it breaks."}},{"before":"3955530ad9a910bad5a463dc986fe383bb185f87","after":"5bddb9f8126e39156fa692c0ba96ae9a965ca7aa","ref":"refs/heads/master","pushedAt":"2023-12-18T10:11:35.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Fix skipped day when UTC and tz are different days (#1183)","shortMessageHtmlLink":"Fix skipped day when UTC and tz are different days (#1183)"}},{"before":"a4032c396faec359c29ab38d4b35739836865773","after":"3955530ad9a910bad5a463dc986fe383bb185f87","ref":"refs/heads/master","pushedAt":"2023-11-22T13:16:06.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Support two-digit years in non-Gregorian calendars (#1187)","shortMessageHtmlLink":"Support two-digit years in non-Gregorian calendars (#1187)"}},{"before":"c54d7e42a4423c9314d57aa99fb016f7ebe87f32","after":"a4032c396faec359c29ab38d4b35739836865773","ref":"refs/heads/master","pushedAt":"2023-11-22T09:37:18.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Fixed RecursionError discovered by OSSFuzz by converting _split_by_known_words into an iterative function (#1201)\n\nCo-authored-by: bcapuano ","shortMessageHtmlLink":"Fixed RecursionError discovered by OSSFuzz by converting _split_by_kn…"}},{"before":"0c7a9d47f88b57494a7bf90714db1514b3af1b03","after":"c54d7e42a4423c9314d57aa99fb016f7ebe87f32","ref":"refs/heads/master","pushedAt":"2023-11-17T10:55:18.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Fix the docs","shortMessageHtmlLink":"Fix the docs"}},{"before":"74f5bcd813c7a7cb158d4cc3c3dfff4da2e9755e","after":"0c7a9d47f88b57494a7bf90714db1514b3af1b03","ref":"refs/heads/master","pushedAt":"2023-11-17T10:46:20.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"CI: +twinescheck","shortMessageHtmlLink":"CI: +twinescheck"}},{"before":"bf6f40442274ff81b6deb930004d06dea14e56fc","after":"74f5bcd813c7a7cb158d4cc3c3dfff4da2e9755e","ref":"refs/heads/master","pushedAt":"2023-11-17T10:02:52.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Fix reStructuredText syntax","shortMessageHtmlLink":"Fix reStructuredText syntax"}},{"before":"32ab23b416d34c248fc898d083824776051fd107","after":"bf6f40442274ff81b6deb930004d06dea14e56fc","ref":"refs/heads/master","pushedAt":"2023-11-17T10:00:12.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Bump version: 1.1.8 → 1.2.0","shortMessageHtmlLink":"Bump version: 1.1.8 → 1.2.0"}},{"before":"11696c1061f88564c11caeaf96773d3ee27a63d5","after":"32ab23b416d34c248fc898d083824776051fd107","ref":"refs/heads/master","pushedAt":"2023-11-17T09:20:00.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Release notes for 1.2.0 (#1200)","shortMessageHtmlLink":"Release notes for 1.2.0 (#1200)"}},{"before":"69f95a4389cf564deb6c24ed88db5c61da0d1dbd","after":"11696c1061f88564c11caeaf96773d3ee27a63d5","ref":"refs/heads/master","pushedAt":"2023-11-15T07:59:21.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"OSSFuzz Initial Integration (#1198)","shortMessageHtmlLink":"OSSFuzz Initial Integration (#1198)"}},{"before":"725ccc05d3ce9441bb07e6a7298800fa04ff7307","after":"69f95a4389cf564deb6c24ed88db5c61da0d1dbd","ref":"refs/heads/master","pushedAt":"2023-10-17T16:49:49.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Add 11 sept. 2014 test case for september not sept/seven (#1191)","shortMessageHtmlLink":"Add 11 sept. 2014 test case for september not sept/seven (#1191)"}},{"before":"0056c88183e3c72c3fe0a192b5b77e0492dd5261","after":"725ccc05d3ce9441bb07e6a7298800fa04ff7307","ref":"refs/heads/master","pushedAt":"2023-08-21T14:51:26.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Replace datetime.utcnow (#1179)","shortMessageHtmlLink":"Replace datetime.utcnow (#1179)"}},{"before":"0814860df6b49e041d62269fe1a74e078ab78102","after":null,"ref":"refs/heads/add-PREFER_MONTH_OF_YEAR-1042","pushedAt":"2023-06-01T20:14:54.274Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"adnan-awan","name":"Adnan Awan","path":"/adnan-awan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8321367?s=80&v=4"}},{"before":"3173d7326cdff854e69aeedea93747cd66bc56bc","after":"0056c88183e3c72c3fe0a192b5b77e0492dd5261","ref":"refs/heads/master","pushedAt":"2023-05-16T10:59:01.578Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Gallaecio","name":"Adrián Chaves","path":"/Gallaecio","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/705211?s=80&v=4"},"commit":{"message":"Add a PREFER_MONTH_OF_YEAR setting (#1146)","shortMessageHtmlLink":"Add a PREFER_MONTH_OF_YEAR setting (#1146)"}},{"before":"8d01b2eb180a0144ddbdd997e87a9e37c072112b","after":"0814860df6b49e041d62269fe1a74e078ab78102","ref":"refs/heads/add-PREFER_MONTH_OF_YEAR-1042","pushedAt":"2023-05-03T07:01:24.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"adnan-awan","name":"Adnan Awan","path":"/adnan-awan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8321367?s=80&v=4"},"commit":{"message":"[dateparser] Add another test for PREFER_MONTH_OF_YEAR\n\n- For example: Input: 2023, Current: April 15th, Preferred: last day, last month, Expected: Dec 31st (i.e. we are making sure it does not cause Dec 30th).\n- https://github.com/scrapinghub/dateparser/issues/1042","shortMessageHtmlLink":"[dateparser] Add another test for PREFER_MONTH_OF_YEAR"}},{"before":"03710f880e4a4d6c9b2ef6ee3118d4fb89753027","after":"8d01b2eb180a0144ddbdd997e87a9e37c072112b","ref":"refs/heads/add-PREFER_MONTH_OF_YEAR-1042","pushedAt":"2023-04-28T09:58:53.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"adnan-awan","name":"Adnan Awan","path":"/adnan-awan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8321367?s=80&v=4"},"commit":{"message":"[dateparser] Run git hooks\n\n- https://github.com/scrapinghub/dateparser/issues/1042","shortMessageHtmlLink":"[dateparser] Run git hooks"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEKxdGfQA","startCursor":null,"endCursor":null}},"title":"Activity · scrapinghub/dateparser"}