This commit is contained in:
2019-03-01 21:46:06 +00:00
parent ba112f1c6c
commit 7a326135f8
2 changed files with 20 additions and 9 deletions

View File

@@ -1,4 +1,11 @@
<script>
//////////////////////////////////////////
// GZDatePicker
// This component was created to wrap the
// vuetify date picker to allow using string date
// and time in iso format and not lose the time
// portion when picking a new date
//
/* Xeslint-disable */
export default {
props: {
@@ -21,6 +28,8 @@ export default {
//Put back the time portion from before
var combined = date + that.value.substr(10);
that.$emit("input", new Date(combined).toISOString());
//Note: I have observed that it converts a date with milliseconds to a date with the final 3 digits stripped and Z put in instead
//Not sure if this will be an issue or not but if it is then might need to force to not UTC or whatever
}
}
});