mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-11 18:35:49 +01:00
ZeTime: Fix calendar event time and date (still barely usable, since only one event is sent, plus sunrise and sunset)
This commit is contained in:
parent
9d3c49309f
commit
7517bffe9c
@ -11,6 +11,7 @@
|
|||||||
* ZeTime: Support rejecting calls
|
* ZeTime: Support rejecting calls
|
||||||
* ZeTime: Try to fix weather conditions on newer firmwares
|
* ZeTime: Try to fix weather conditions on newer firmwares
|
||||||
* ZeTime: Fix could not synchronize calendar on connect
|
* ZeTime: Fix could not synchronize calendar on connect
|
||||||
|
* ZeTime: Fix calendar event time and date (still barely usable, since only one event is sent, plus sunrise and sunset)
|
||||||
* Allow set light/dark theme according to system settings (new default)
|
* Allow set light/dark theme according to system settings (new default)
|
||||||
|
|
||||||
#### Version 0.43.3
|
#### Version 0.43.3
|
||||||
|
@ -550,7 +550,7 @@ public class ZeTimeDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
public void onAddCalendarEvent(CalendarEventSpec calendarEventSpec) {
|
public void onAddCalendarEvent(CalendarEventSpec calendarEventSpec) {
|
||||||
Calendar time = GregorianCalendar.getInstance();
|
Calendar time = GregorianCalendar.getInstance();
|
||||||
byte[] CalendarEvent = new byte[calendarEventSpec.title.getBytes(StandardCharsets.UTF_8).length + 16]; // 26 bytes for calendar and overhead
|
byte[] CalendarEvent = new byte[calendarEventSpec.title.getBytes(StandardCharsets.UTF_8).length + 16]; // 26 bytes for calendar and overhead
|
||||||
time.setTimeInMillis(calendarEventSpec.timestamp);
|
time.setTimeInMillis(calendarEventSpec.timestamp * 1000L);
|
||||||
CalendarEvent[0] = ZeTimeConstants.CMD_PREAMBLE;
|
CalendarEvent[0] = ZeTimeConstants.CMD_PREAMBLE;
|
||||||
CalendarEvent[1] = ZeTimeConstants.CMD_PUSH_CALENDAR_DAY;
|
CalendarEvent[1] = ZeTimeConstants.CMD_PUSH_CALENDAR_DAY;
|
||||||
CalendarEvent[2] = ZeTimeConstants.CMD_SEND;
|
CalendarEvent[2] = ZeTimeConstants.CMD_SEND;
|
||||||
|
Loading…
Reference in New Issue
Block a user