headscale/hscontrol/mapper
Mike Poindexter 3101f895a7
Fix 764 (#2093)
* Fix KeyExpiration when a zero time value has a timezone

When a zero time value is loaded from JSON or a DB in a way that
assigns it the local timezone, it does not roudtrip in JSON as a
value for which IsZero returns true. This causes KeyExpiry to be
treated as a far past value instead of a nilish value.

See https://github.com/golang/go/issues/57040

* Fix whitespace

* Ensure that postgresql is used for all tests when env var is set

* Pass through value of HEADSCALE_INTEGRATION_POSTGRES env var

* Add option to set timezone on headscale container

* Add test for registration with auth key in alternate timezone
2024-09-03 09:22:17 +02:00
..
mapper.go reformat code (#2019) 2024-07-22 08:56:00 +02:00
mapper_test.go move userprofiles into method on user struct (#2014) 2024-07-19 09:03:18 +02:00
suite_test.go introduce mapper package 2023-06-08 16:34:15 +02:00
tail.go Fix 764 (#2093) 2024-09-03 09:22:17 +02:00
tail_test.go Fix 764 (#2093) 2024-09-03 09:22:17 +02:00