File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
packages/vuetify/src/components/VCalendar/mixins Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,7 @@ export default defineComponent({
3636
3737 created ( ) {
3838 this . updateTimes ( )
39- // Only call setPresent in non-test environments to avoid interfering with test snapshots
40- if ( process . env . NODE_ENV !== 'test' ) {
41- this . setPresent ( )
42- }
39+ this . setPresent ( )
4340 } ,
4441
4542 methods : {
@@ -53,16 +50,6 @@ export default defineComponent({
5350 this . updateDay ( now , this . times . now )
5451 this . updateTime ( now , this . times . now )
5552 this . updateDay ( now , this . times . today )
56-
57- // Set relative flags for now and today
58- // In test environment, these will be overridden by updateRelative calls
59- this . times . now . present = true
60- this . times . now . past = false
61- this . times . now . future = false
62-
63- this . times . today . present = true
64- this . times . today . past = false
65- this . times . today . future = false
6653 } ,
6754 getNow ( ) : CalendarTimestamp {
6855 return parseDate ( new Date ( ) )
You can’t perform that action at this time.
0 commit comments