fix minor issue
This commit is contained in:
		| @@ -354,12 +354,12 @@ class Inkycal: | |||||||
|  |  | ||||||
|             if self.use_pi_sugar: |             if self.use_pi_sugar: | ||||||
|                 # todo make this timezone aware! |                 # todo make this timezone aware! | ||||||
|                 sleep_time = arrow.now(tz=get_system_tz()).shift(seconds=sleep_time) |                 sleep_time_rtc = arrow.now(tz=get_system_tz()).shift(seconds=sleep_time) | ||||||
|                 result = self.pisugar.rtc_alarm_set(sleep_time, 127) |                 result = self.pisugar.rtc_alarm_set(sleep_time_rtc, 127) | ||||||
|                 if result: |                 if result: | ||||||
|                     print(f"Alarm set for {sleep_time.format('HH:mm:ss')}") |                     print(f"Alarm set for {sleep_time_rtc.format('HH:mm:ss')}") | ||||||
|                 else: |                 else: | ||||||
|                     print(f"Failed to set alarm for {sleep_time.format('HH:mm:ss')}") |                     print(f"Failed to set alarm for {sleep_time_rtc.format('HH:mm:ss')}") | ||||||
|  |  | ||||||
|             await asyncio.sleep(sleep_time) |             await asyncio.sleep(sleep_time) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user