My other ESP32 device is withing BT reach to Puck.js and I just wondered if I can make it connect to Puck.js and somehow set the time on it
You could connect, but it's a lot of work. However you could make the ESP32 advertise the time via Bluetooth Low Energy (what are you programming the ESP32 with?).
You could then use NRF.requestDevice with a filter on the Puck to find the ESP32 and read the advertising packet direct from there.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You could connect, but it's a lot of work. However you could make the ESP32 advertise the time via Bluetooth Low Energy (what are you programming the ESP32 with?).
You could then use
NRF.requestDevice
with a filter on the Puck to find the ESP32 and read the advertising packet direct from there.