This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user