In the time component in antDesignView, the uploaded time is 8 hours less than the selected time

 

        <a-date-picker
         :show-time="true"
          v-if="item.type == 'datepicker'"
          :disabled="item.disabled"
          v-model:value="form[item.key]"
          format="YYYY-MM-DD HH:mm:ss"
          valueFormat="YYYY-MM-DDTHH:mm:ssZ"
        />

show-time="true" controls the display time, minutes and seconds

format="YYYY-MM-DD HH:mm:ss" echoed time format

 valueFormat="YYYY-MM-DDTHH:mm:ssZ" The format passed to the background

Guess you like

Origin blog.csdn.net/qq_46617584/article/details/130972390