{"action":"created","issue":{"url":"https://api.github.com/repos/ZotPlus/zotero-better-bibtex/issues/352","labels_url":"https://api.github.com/repos/ZotPlus/zotero-better-bibtex/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/ZotPlus/zotero-better-bibtex/issues/352/comments","events_url":"https://api.github.com/repos/ZotPlus/zotero-better-bibtex/issues/352/events","html_url":"https://github.com/ZotPlus/zotero-better-bibtex/issues/352","id":107450496,"number":352,"title":"Smarter way to export CSL date override","user":{"login":"retorquere","id":132108,"avatar_url":"https://avatars.githubusercontent.com/u/132108?v=3","gravatar_id":"","url":"https://api.github.com/users/retorquere","html_url":"https://github.com/retorquere","followers_url":"https://api.github.com/users/retorquere/followers","following_url":"https://api.github.com/users/retorquere/following{/other_user}","gists_url":"https://api.github.com/users/retorquere/gists{/gist_id}","starred_url":"https://api.github.com/users/retorquere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retorquere/subscriptions","organizations_url":"https://api.github.com/users/retorquere/orgs","repos_url":"https://api.github.com/users/retorquere/repos","events_url":"https://api.github.com/users/retorquere/events{/privacy}","received_events_url":"https://api.github.com/users/retorquere/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ZotPlus/zotero-better-bibtex/labels/enhancement","name":"enhancement","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-21T06:17:32Z","updated_at":"2015-09-21T10:18:22Z","closed_at":null,"body":"- for biblatex: Test whether string in `{:issued: …}`, `{:accessed: …}` etc. matches a biblatex (=EDTF Level 0) date or date range. (Biblatex manual: “The date fields … require a date specification in yyyy-mm-dd format. Date ranges are given as yyyy-mm-dd/yyyy-mm-dd. Partial dates are valid provided that date components are omitted at the end only. You may specify an open ended date range by giving the range separator and omitting the end date (e. g., yyyy/).”) When matching, export to the biblatex `date` field; if not, export to the biblatex `year` field (which, unlike `date`, can be used for literal/free-form date strings).\r\n- for “Pandoc JSON”: Same test. When matching, reformat date or date range according to CSL specs, e.g., `{ \"issued\": { \"date-parts\": [ [ 2014, 12, 31 ], [ 2015, 01, 01 ] ] } }`; if not, export to a “literal” element, e.g., `{ \"issued\": { \"literal\": \"13th century\" } }`. See [citeproc-js specs](http://gsl-nagoya-u.net/http/pub/citeproc-doc.html#dates)."},"comment":{"url":"https://api.github.com/repos/ZotPlus/zotero-better-bibtex/issues/comments/141933568","html_url":"https://github.com/ZotPlus/zotero-better-bibtex/issues/352#issuecomment-141933568","issue_url":"https://api.github.com/repos/ZotPlus/zotero-better-bibtex/issues/352","id":141933568,"user":{"login":"retorquere","id":132108,"avatar_url":"https://avatars.githubusercontent.com/u/132108?v=3","gravatar_id":"","url":"https://api.github.com/users/retorquere","html_url":"https://github.com/retorquere","followers_url":"https://api.github.com/users/retorquere/followers","following_url":"https://api.github.com/users/retorquere/following{/other_user}","gists_url":"https://api.github.com/users/retorquere/gists{/gist_id}","starred_url":"https://api.github.com/users/retorquere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retorquere/subscriptions","organizations_url":"https://api.github.com/users/retorquere/orgs","repos_url":"https://api.github.com/users/retorquere/repos","events_url":"https://api.github.com/users/retorquere/events{/privacy}","received_events_url":"https://api.github.com/users/retorquere/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T10:18:22Z","updated_at":"2015-09-21T10:18:22Z","body":"Wait, the brackets is an official thing? Would `[1802]/[1833]` be a meaningful `year` value?"}}