mirror of
https://github.com/immich-app/immich.git
synced 2024-12-22 01:47:08 +02:00
5 lines
211 B
Dart
5 lines
211 B
Dart
|
extension TZOffsetExtension on Duration {
|
||
|
String formatAsOffset() =>
|
||
|
"${isNegative ? '-' : '+'}${inHours.abs().toString().padLeft(2, '0')}:${inMinutes.abs().remainder(60).toString().padLeft(2, '0')}";
|
||
|
}
|