Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
fix issue with date parsing when autociting a website
Browse files Browse the repository at this point in the history
  • Loading branch information
dsifford committed Jan 29, 2019
1 parent 85a282b commit 589459f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/js/gutenberg/components/autocite/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export default class Autocite extends Component<Props, State> {
type="search"
autoComplete="off"
data-lpignore="true"
required
ref={this.inputRef}
{...inputProps}
value={query}
Expand Down
4 changes: 2 additions & 2 deletions src/js/utils/resolvers/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ function parseDateField<T extends CSL.DateFieldKey>(
[key]: {
raw: [
date.getUTCFullYear(),
date.getUTCMonth() + 1,
date.getUTCDate(),
`0${date.getUTCMonth() + 1}`.slice(-2),
`0${date.getUTCDate()}`.slice(-2),
].join('/'),
},
};
Expand Down

0 comments on commit 589459f

Please sign in to comment.