-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LOOP-5035] report time zone changes #105
[LOOP-5035] report time zone changes #105
Conversation
f576f31
to
7cd048e
Compare
@@ -485,6 +486,33 @@ extension TidepoolService: RemoteDataService { | |||
|
|||
return (created, updated, lastControllerSettingsDatum, lastCGMSettingsDatum, lastPumpSettingsDatum) | |||
} | |||
|
|||
private func uploadTimeZoneChangeData(from fromTimeZone: TimeZone, to toTimeZone: TimeZone, method: TTimeChangeDeviceEventDatum.Method = .automatic, at date: Date = Date()) async throws { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the method defaults to .automatic
, but truly the method is not included in the notification and thus is unknown. Does this matter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it will still accomplish it's main goal of letting data science track which timezone the user is in.
b2b34e5
to
f43252f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -19,7 +19,7 @@ actor DeviceLogUploader { | |||
|
|||
private var delegate: RemoteDataServiceDelegate? | |||
|
|||
private var logChunkDuration = TimeInterval(hours: 1) | |||
private var logChunkDuration = TimeInterval(minutes: 5)//TimeInterval(hours: 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be reverted.
@@ -485,6 +486,33 @@ extension TidepoolService: RemoteDataService { | |||
|
|||
return (created, updated, lastControllerSettingsDatum, lastCGMSettingsDatum, lastPumpSettingsDatum) | |||
} | |||
|
|||
private func uploadTimeZoneChangeData(from fromTimeZone: TimeZone, to toTimeZone: TimeZone, method: TTimeChangeDeviceEventDatum.Method = .automatic, at date: Date = Date()) async throws { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it will still accomplish it's main goal of letting data science track which timezone the user is in.
https://tidepool.atlassian.net/browse/LOOP-5035