Skip to content

Conversation

@boringcactus
Copy link
Member

@boringcactus boringcactus commented Jul 29, 2025

Summary

Ticket: Eastern time, all the time

I’m sorry I keep making these massive PRs.

I probably could’ve just centralized the formatting to use Eastern Time without also introducing the custom EasternTimeInstant, but I think the custom EasternTimeInstant is clearer and also simpler to create with a specific value.

iOS

  • [ ] If you added any user-facing strings on iOS, are they included in Localizable.xcstrings?
    • [ ] Add temporary machine translations, marked "Needs Review"

android

  • [ ] All user-facing strings added to strings resource in alphabetical order
  • [ ] Expensive calculations are run in withContext(Dispatchers.Default) where possible (ideally in shared code)

Testing

Checked on both iOS and Android that things that are about to happen show two hours later. Updated unit tests to assert that the correct time is shown.

@boringcactus boringcactus requested a review from a team as a code owner July 29, 2025 19:09
@boringcactus boringcactus requested a review from EmmaSimon July 29, 2025 19:09
# Conflicts:
#	androidApp/src/main/java/com/mbta/tid/mbta_app/android/util/TripInstantDisplayExtension.kt
Copy link
Contributor

@EmmaSimon EmmaSimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is a lot, thanks for tracking all of the usages down 😵 I appreciate that stuff like initializers and addition/subtraction are a bit more streamlined and consistent across platforms now.

val propertyName = SemanticsProperties.ContentDescription.name
return SemanticsMatcher("$propertyName matches $regex") {
it.config.getOrNull(SemanticsProperties.ContentDescription)?.any { item ->
item.matches(regex)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 🎉

@boringcactus boringcactus enabled auto-merge July 29, 2025 23:42
@boringcactus boringcactus added this pull request to the merge queue Jul 30, 2025
Merged via the queue into main with commit 4cb6b2b Jul 30, 2025
17 of 18 checks passed
@boringcactus boringcactus deleted the mth-eastern-time-all-the-time branch July 30, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants