mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Properly localized dates in native player
This commit is contained in:
parent
829bc3e34c
commit
d2b8a855f3
7 changed files with 90 additions and 15 deletions
|
|
@ -78,7 +78,7 @@ class _TranslationsMessgener extends messenger.TranslationsPigeon {
|
|||
String close() => context.localized.close;
|
||||
|
||||
@override
|
||||
String endsAt(String time) => context.localized.endsAt(DateTime.parse(time));
|
||||
String endsAt(String time) => context.localized.endsAt(DateTime.parse(time).toLocal());
|
||||
|
||||
@override
|
||||
String next() => context.localized.nextVideo;
|
||||
|
|
@ -97,4 +97,7 @@ class _TranslationsMessgener extends messenger.TranslationsPigeon {
|
|||
|
||||
@override
|
||||
String subtitles() => context.localized.subtitles;
|
||||
|
||||
@override
|
||||
String hoursAndMinutes(String time) => context.localized.formattedTime(DateTime.parse(time).toLocal());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue