Skip to content

Commit ccfa694

Browse files
fix: 6732 - price date displayed in local timezone (#6774)
1 parent dbbc9fb commit ccfa694

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/smooth_app/lib/pages/prices/price_data_widget.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ class PriceDataWidget extends StatelessWidget {
2929

3030
final DateFormat timeFormat = DateFormat('HH:mm');
3131

32+
final DateTime created = price.created.toLocal();
3233
final String date = MaterialLocalizations.of(
3334
context,
34-
).formatCompactDate(price.created);
35-
final String time = timeFormat.format(price.created);
36-
35+
).formatCompactDate(created);
36+
final String time = timeFormat.format(created);
3737
final SmoothColorsThemeExtension extension = context
3838
.extension<SmoothColorsThemeExtension>();
3939
final bool lightTheme = context.lightTheme();

0 commit comments

Comments
 (0)