Skip to content
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

feat(contacts): Show time difference for users in different timezones #50214

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jan 16, 2025

Summary

Add the time offset to a different user in a different timezone to the account menu.

Screen recording

Before After
Bildschirmfoto_20250116_181620 Bildschirmfoto_20250116_181656
Bildschirmaufnahme_20250116_130919.webm

Checklist

$timeOffsetString = $l->t('%s behind', [$timeOffsetString]);
}
}
$profileActionText = "{$localTimeString} • {$timeOffsetString}";
Copy link
Member

Choose a reason for hiding this comment

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

Should be translated, so that RTL languages also have first the time and then the "offset"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Normally this should also work, we do the same for app headlines and page titles on the frontend.
But if preffered I can add this as translated

Copy link
Member

Choose a reason for hiding this comment

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

Maybe @DorraJaouad can give it a quick test with arabic to see how it feels?

Choose a reason for hiding this comment

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

image

Yeah, it looks good, offset comes in second position

@susnux susnux requested a review from nickvergessen January 17, 2025 13:42
Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

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

Looks good to me! I assume the vertical misalignment is already known/tracked in a different issue. :)

@susnux
Copy link
Contributor Author

susnux commented Jan 20, 2025

I assume the vertical misalignment is already known/tracked in a different issue. :)

yes!

@susnux susnux merged commit 27ac8e0 into master Jan 20, 2025
187 of 188 checks passed
@susnux susnux deleted the feat/show-time-diff-user branch January 20, 2025 13:39
@Altahrim Altahrim mentioned this pull request Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants