Skip to content

Commit

Permalink
時間を24時間形式固定に修正
Browse files Browse the repository at this point in the history
  • Loading branch information
shiosyakeyakini-info committed Jul 16, 2023
1 parent 6488799 commit 56d5a7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/view/themes/app_theme_scope.dart
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ class AppThemeScopeState extends ConsumerState<AppThemeScope> {
data: buildTheme(context, foundColorTheme),
child: AppTheme(
themeData: buildDarkAppThemeData(context, foundColorTheme),
child: widget.child),
child: MediaQuery(
data:
MediaQuery.of(context).copyWith(alwaysUse24HourFormat: true),
child: widget.child)),
);
}
}
4 changes: 2 additions & 2 deletions test/view/note_create_page/note_create_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2405,7 +2405,7 @@ void main() {
NotesCreatePollRequest(
choices: [":ai_yay:", ":ai_yay_superfast:"],
multiple: false,
expiresAt: DateTime(2099, 12, 31, 15, 34, 0, 0),
expiresAt: DateTime(2099, 12, 31, 3, 34, 0, 0),
expiredAfter: null)))))).called(1);
});

Expand Down Expand Up @@ -2474,7 +2474,7 @@ void main() {
NotesCreatePollRequest(
choices: [":ai_yay:", ":ai_yay_superfast:"],
multiple: false,
expiresAt: DateTime(2099, 12, 31, 15, 34, 0, 0),
expiresAt: DateTime(2099, 12, 31, 3, 34, 0, 0),
expiredAfter: null)))))).called(1);
});

Expand Down

0 comments on commit 56d5a7c

Please sign in to comment.