Sorry for the double post but crazyc, I edited your script and got it to work 100%! Alarms work too.
Code
[{
	"desc": "Set clock to current time",
	"space": {
		"cpu": {
			"tag": ":maincpu",
			"type": "data"
		}
	},
	"script": {
		"run": "local lt = os.date('*t') cpu:write_u8(16, lt.min % 10) cpu:write_u8(17, lt.min // 10) local hour = (lt.hour > 12) and (lt.hour - 12) or lt.hour if lt.hour == 0 then hour = 12 end cpu:write_u8(18, hour % 10) cpu:write_u8(19, (hour // 10+12) + (((lt.hour > 12) or (lt.hour == 12)) and -10 or 20))"
	}
}]


Edit: the alarm is still finicky but it kinda works?? Seconds might have to be secretly synced as well for it to go off properly.

Last edited by notknown; 09/12/19 05:19 AM.