-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with parsing Birthday date #11
Comments
Hmm interesting. From the ajax endpoint I believed it would always use american date format MM/DD. I live in Australia where DD/MM is also used but the MM/DD format was still being returned. Could you add me somehow on an instant messaging platform so we can debug and fix this? Thanks! |
Printing the birthday_date_str https://github.com/mobeigi/fb2cal/blob/master/src/fb2cal.py#L271
As a workaround I was able to get everything working by replacing this line https://github.com/mobeigi/fb2cal/blob/master/src/fb2cal.py#L282 with |
Okay so I addressed this issue. Best solution was to query an endpoint to get the users locale. It now supports all locales which support regular Hindu–Arabic numeral system characters |
I was trying to use the script but it's failing because of the error -
I added a line to print birthday.month and birthday.day. The birthday month is being parsed as 13 and day as 7.
Going into that user's about page the Birthday shows as 13 July 1996.
I am from India and we use DD/MM format for dates.
If any other is info is required please let me know.
The text was updated successfully, but these errors were encountered: