mirror of
https://github.com/byulmaru/quesdon
synced 2024-11-27 14:28:04 +09:00
using momentjs
This commit is contained in:
parent
1688d370f1
commit
41696dccb9
@ -32,7 +32,6 @@
|
||||
"@types/react-dom": "^16.0.3",
|
||||
"@types/react-router-dom": "^4.2.3",
|
||||
"@types/reactstrap": "^5.0.10",
|
||||
"@types/xdate": "^0.8.29",
|
||||
"babel-core": "^6.26.0",
|
||||
"babel-loader": "^7.1.4",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
@ -43,6 +42,7 @@
|
||||
"fetch-defaults": "^1.0.0",
|
||||
"file-loader": "^1.1.11",
|
||||
"jquery": "^3.2.1",
|
||||
"moment": "^2.22.2",
|
||||
"node-dev": "^3.1.3",
|
||||
"npm-run-all": "^4.1.3",
|
||||
"page": "^1.7.1",
|
||||
@ -58,8 +58,7 @@
|
||||
"uglifyjs-webpack-plugin": "^1.2.5",
|
||||
"webpack": "^4.8.3",
|
||||
"webpack-cli": "^2.1.3",
|
||||
"webpack-dev-server": "^3.1.4",
|
||||
"xdate": "^0.8.2"
|
||||
"webpack-dev-server": "^3.1.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"dotenv": "^5.0.1",
|
||||
|
@ -1,7 +1,7 @@
|
||||
import * as moment from "moment"
|
||||
import * as React from "react"
|
||||
import { Link } from "react-router-dom"
|
||||
import { Button, Card, CardBody, CardSubtitle, CardText, CardTitle, FormGroup, Input } from "reactstrap"
|
||||
import XDate from "xdate"
|
||||
import { APIQuestion } from "../../api-interfaces"
|
||||
import { apiFetch } from "../api-fetch"
|
||||
import { Checkbox } from "./common/checkbox"
|
||||
@ -34,7 +34,7 @@ export class Question extends React.Component<Props, State> {
|
||||
{this.props.answeredAt && <Link
|
||||
to={`/@${this.props.user.acct}/questions/${this.props._id}`}
|
||||
className="text-muted">
|
||||
{new XDate(this.props.answeredAt).toString("yyyy-MM-dd HH:mm:ss")}
|
||||
{moment(this.props.answeredAt).format("YYYY-MM-DD HH:mm:ss")}
|
||||
</Link>}
|
||||
{this.renderQuestionUser()}
|
||||
</CardSubtitle>
|
||||
|
12
yarn.lock
12
yarn.lock
@ -222,10 +222,6 @@
|
||||
"@types/express-serve-static-core" "*"
|
||||
"@types/mime" "*"
|
||||
|
||||
"@types/xdate@^0.8.29":
|
||||
version "0.8.29"
|
||||
resolved "https://registry.yarnpkg.com/@types/xdate/-/xdate-0.8.29.tgz#0aeacee64c7f54792dc1e3e93af320839a0367dc"
|
||||
|
||||
"@webassemblyjs/ast@1.4.3":
|
||||
version "1.4.3"
|
||||
resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.4.3.tgz#3b3f6fced944d8660273347533e6d4d315b5934a"
|
||||
@ -4735,6 +4731,10 @@ mkdirp@0.5.x, mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1:
|
||||
dependencies:
|
||||
minimist "0.0.8"
|
||||
|
||||
moment@^2.22.2:
|
||||
version "2.22.2"
|
||||
resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.2.tgz#3c257f9839fc0e93ff53149632239eb90783ff66"
|
||||
|
||||
mongodb-core@2.1.18:
|
||||
version "2.1.18"
|
||||
resolved "https://registry.yarnpkg.com/mongodb-core/-/mongodb-core-2.1.18.tgz#4c46139bdf3a1f032ded91db49f38eec01659050"
|
||||
@ -7623,10 +7623,6 @@ write-file-atomic@^1.2.0:
|
||||
imurmurhash "^0.1.4"
|
||||
slide "^1.1.5"
|
||||
|
||||
xdate@^0.8.2:
|
||||
version "0.8.2"
|
||||
resolved "https://registry.yarnpkg.com/xdate/-/xdate-0.8.2.tgz#d7b033c00485d02695baf0044f4eacda3fc961a3"
|
||||
|
||||
xtend@^4.0.0, xtend@~4.0.0, xtend@~4.0.1:
|
||||
version "4.0.1"
|
||||
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
|
||||
|
Loading…
Reference in New Issue
Block a user