Skip to content

Improve Dana-i driver handling of Timezone Changes and Daylight Saving Time (auto-sync pump time with phone time) #4727

@Roozeboom007

Description

@Roozeboom007

Description
For the Dana-i insulin pump, timezone changes and Daylight Saving Time (DST) transitions can cause issues in AAPS because the pump stores timestamps in local time without timezone information.
This may lead to:
• duplicated treatments after timezone changes
• incorrect interpretation of pump history
• temporary inaccuracies in IOB/COB
• need for manual workarounds (profile time shift or history reset)
Currently, DST handling is partially supported, but timezone changes during travel still require manual user intervention and can be error-prone.


Request
Please consider improving the Dana-i driver so that it:
• Automatically detects and handles phone timezone changes safely
• Keeps pump time and AAPS interpretation consistent with phone time
• Prevents duplicate treatment entries after timezone shifts
• Clearly distinguishes between:
o timezone changes (travel)
o DST changes (system-wide adjustment)
Ideally:
• DST transitions should remain fully automatic and safe
• Travel-related timezone changes should be handled more robustly or automatically synchronized without corrupting history


Impact
Improving this would:
• reduce user complexity during travel
• improve safety of closed-loop operation
• prevent IOB/COB inconsistencies after time changes
• reduce need for manual profile time shifting workarounds


Environment
• Pump: Dana-i insulin pump
• App: AndroidAPS
• Android version: (varies, e.g. Android 14–16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions