We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b1e037 commit 558f2efCopy full SHA for 558f2ef
lib/src/types/binary_codec.dart
@@ -3,6 +3,7 @@ import 'dart:typed_data';
3
4
import 'package:buffer/buffer.dart';
5
import 'package:pg_timezone/pg_timezone.dart' as tz;
6
+import 'package:pg_timezone/timezone.dart' as tzenv;
7
import 'package:postgres/src/types/generic_type.dart';
8
9
import '../buffer.dart';
@@ -839,6 +840,8 @@ class PostgresBinaryDecoder {
839
840
'Location with the name "$pgTimeZone" doesn\'t exist');
841
}
842
final tzLocation = tzLocations.first;
843
+ //define location for TZDateTime.toLocal()
844
+ tzenv.setLocalLocation(tzLocation);
845
846
final offsetInMilliseconds = tzLocation.currentTimeZone.offset;
847
// Conversion of milliseconds to hours
0 commit comments