Skip to content

Commit

Permalink
Use ET timezone for vpn cohort (#3930)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/488551667048375/1206034019967211/f

### Description
Use ET tz for vpn cohort

### Steps to test this PR

_Test_
- [x] fresh install from this branch
- [x] enable NetP
- [x] verify cohort is set in ET timezone
  • Loading branch information
aitorvs authored Nov 27, 2023
1 parent 910f339 commit 300ec57
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import javax.inject.Inject
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import org.threeten.bp.LocalDate
import org.threeten.bp.ZoneId

@ContributesMultibinding(
scope = VpnScope::class,
Expand All @@ -50,7 +51,7 @@ class NetPCohortUpdater @Inject constructor(
fun attemptToSetNetPCohort() {
// skip if already stored
cohortStore.cohortLocalDate?.let { return }
cohortStore.cohortLocalDate = LocalDate.now()
cohortStore.cohortLocalDate = LocalDate.now(ZoneId.of("America/New_York")) // ET time
}

coroutineScope.launch(dispatcherProvider.io()) {
Expand Down

0 comments on commit 300ec57

Please sign in to comment.