Skip to content

Commit b962474

Browse files
committed
症状入力の日時をUTCでPOSTするように修正
1 parent f401eea commit b962474

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pages/center/_centerId/patient/_patientId.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
<script lang="ts">
228228
import { Component, Vue } from 'vue-property-decorator'
229229
import dayjs from 'dayjs'
230+
import utc from 'dayjs/plugin/utc'
230231
import Papa from 'papaparse'
231232
import { saveAs } from 'file-saver'
232233
import * as zip from '@zip.js/zip.js/dist/zip'
@@ -245,6 +246,8 @@ import PlusIcon from '@/static/icon-plus.svg'
245246
import DownloadIcon from '@/static/icon-download.svg'
246247
import { patientsStore, statusesStore } from '@/store'
247248
249+
dayjs.extend(utc)
250+
248251
type SymptomItem = {
249252
name: string
250253
label: string
@@ -340,7 +343,7 @@ export default class PatientId extends Vue {
340343
341344
get status(): ConsumeStatus {
342345
return {
343-
created: this.inputDateTime,
346+
created: dayjs(this.inputDateTime).utc().format(),
344347
SpO2: +this.inputSpO2,
345348
body_temperature: +this.inputTemperature,
346349
pulse: +this.inputPulse,

0 commit comments

Comments
 (0)