mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +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: Try to fix weather conditions on newer firmwares
|
||||
* 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)
|
||||
|
||||
#### Version 0.43.3
|
||||
|
@ -550,7 +550,7 @@ public class ZeTimeDeviceSupport extends AbstractBTLEDeviceSupport {
|
||||
public void onAddCalendarEvent(CalendarEventSpec calendarEventSpec) {
|
||||
Calendar time = GregorianCalendar.getInstance();
|
||||
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[1] = ZeTimeConstants.CMD_PUSH_CALENDAR_DAY;
|
||||
CalendarEvent[2] = ZeTimeConstants.CMD_SEND;
|
||||
|
Loading…
Reference in New Issue
Block a user