High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): show memory and folder dates in local time (#28941)
Santo Shakilfe9ca4f40a7f
diff --git a/mobile/lib/pages/library/folder/folder.page.dart b/mobile/lib/pages/library/folder/folder.page.dartindex e2766df547..5efb5ccc62 100644--- a/mobile/lib/pages/library/folder/folder.page.dart+++ b/mobile/lib/pages/library/folder/folder.page.dart@@ -197,7 +197,7 @@ class FolderContent extends HookConsumerWidget {style: context.textTheme.titleSmall?.copyWith(fontWeight: FontWeight.w600),),subtitle: Text(- "${asset.exifInfo.fileSize != null ? formatBytes(asset.exifInfo.fileSize ?? 0) : ""} • ${DateFormat.yMMMd().format(asset.createdAt)}",+ "${asset.exifInfo.fileSize != null ? "${formatBytes(asset.exifInfo.fileSize ?? 0)} • " : ""}${DateFormat.yMMMd().format(asset.createdAt.toLocal())}",style: context.textTheme.bodyMedium?.copyWith(color: context.colorScheme.onSurfaceSecondary),),),diff --git a/mobile/lib/presentation/widgets/memory/memory_bottom_info.widget.dart b/mobile/lib/presentation/widgets/memory/memory_bottom_info.widget.dartindex 9eb7792fb4..fc9bfb34e7 100644--- a/mobile/lib/presentation/widgets/memory/memory_bottom_info.widget.dart+++ b/mobile/lib/presentation/widgets/memory/memory_bottom_info.widget.dart@@ -30,7 +30,7 @@ class DriftMemoryBottomInfo extends StatelessWidget {style: TextStyle(color: Colors.grey[400], fontSize: 13.0, fontWeight: FontWeight.w500),),Text(- df.format(fileCreatedDate),+ df.format(fileCreatedDate.toLocal()),style: const TextStyle(color: Colors.white, fontSize: 15.0, fontWeight: FontWeight.w500),),],@@ -41,7 +41,7 @@ class DriftMemoryBottomInfo extends StatelessWidget {minWidth: 0,onPressed: () async {await context.router.navigate(const TabShellRoute(children: [MainTimelineRoute()]));- EventStream.shared.emit(ScrollToDateEvent(fileCreatedDate));+ EventStream.shared.emit(ScrollToDateEvent(fileCreatedDate.toLocal()));},shape: const CircleBorder(),color: Colors.white.withValues(alpha: 0.2),