Skip to content

Commit

Permalink
started filter
Browse files Browse the repository at this point in the history
  • Loading branch information
gregpr07 committed Feb 14, 2020
1 parent aca038a commit 9fc7740
Show file tree
Hide file tree
Showing 9 changed files with 818 additions and 17,142 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# package lock
package-lock.json

# Runtime data
pids
*.pid
Expand Down
16,856 changes: 0 additions & 16,856 deletions package-lock.json

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"gatsby-plugin-sharp": "^2.3.10",
"gatsby-source-filesystem": "^2.1.43",
"gatsby-transformer-sharp": "^2.3.9",
"iso-639-1": "^2.1.0",
"prop-types": "^15.7.2",
"query-string": "^6.9.0",
"react": "^16.12.0",
Expand All @@ -39,7 +40,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
"url": "https://github.com/gregpr07/X5GON_discovery"
},
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
Expand Down
29 changes: 29 additions & 0 deletions src/components/functions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
export function parseISOString(s) {
var b = s.split(/\D+/)
return new Date(Date.UTC(b[0], --b[1], b[2], b[3], b[4], b[5], b[6]))
}

const months = [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
]

export function isoFormatDMY(d) {
return (
d.getUTCDate() +
" " +
months[parseInt(d.getUTCMonth() + 1)] +
", " +
d.getUTCFullYear()
)
}
Loading

0 comments on commit 9fc7740

Please sign in to comment.