Skip to content
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

Bibtex month like #mar# not parsed #41

Closed
Siedlerchr opened this issue Dec 16, 2017 · 2 comments
Closed

Bibtex month like #mar# not parsed #41

Siedlerchr opened this issue Dec 16, 2017 · 2 comments

Comments

@Siedlerchr
Copy link
Contributor

Originally reported at JabRef/jabref#3239
Enter the month 3 in the month field in JabRef.
JabRef converts the month to #mar# which is then passed to CSL.

I debugged a bit through and found that the toMonth method returns -1.
You could take this as a chance to make use of the new fancy DateFormatter in Java 8 and simply the parsing of dates:
https://docs.oracle.com/javase/tutorial/datetime/iso/format.html

@michel-kraemer
Copy link
Owner

The issue in JabRef has been fixed. Is there still something that we need to do here on the side of citeproc-java? DateParser is already able to recognise mar as a month name.

By the way: the new DateFormatter was already available when I created citeproc-java. However, DateParser is even more lenient and specifically optimised for BibTeX.

@michel-kraemer
Copy link
Owner

I'm closing this due lack of response. Also, the issue seems to be fixed already. If there still is a problem please open a new issue. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants