diff --git a/scripts/install.sh b/scripts/install.sh index d9eaa1e..11be9f6 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -27,7 +27,13 @@ if $UPDATE_AVR; then ./installer/scripts/avr109-flash.py src/avr/bbctrl-avr-firmware.hex fi -# Update config.txt +# Set a default time-zone, if one has not been set +timedatectl | grep 'Time zone: Etc/UTC' >/dev/null +if [ $? -eq 0 ]; then + timedatectl set-timezone America/Los_Angeles +fi + +# Update /boot/config.txt ./installer/scripts/edit-boot-config \ disable_overscan=1 \ framebuffer_width=1280 \ diff --git a/src/svelte-components/src/components/TextFieldWithOptions.svelte b/src/svelte-components/src/components/TextFieldWithOptions.svelte index 9a54ad5..2c2d8a0 100644 --- a/src/svelte-components/src/components/TextFieldWithOptions.svelte +++ b/src/svelte-components/src/components/TextFieldWithOptions.svelte @@ -46,7 +46,7 @@ bind:value on:focusin={() => showMenu(true)} on:focusout={() => showMenu(false)} - use={[[virtualKeyboardChange, (newValue) => (value = newValue)]]} + use={[virtualKeyboardChange((v) => (value = v))]} {...$$restProps} >
- Because this controller is not connected to the internet, - you can manually set the time. + Any time the controller is turned off, the time will need to + be reset. If you connect the controller to the internet, the + time will be managed automatically.
-- Note: any time the controller is turned off, the time will - need to be reset. If you connect the controller to the - internet, the time will be managed automatically. -
- -- To display your local time correctly, the controller must know - what timezone it is in. -
- -