django_peeringdb sync issues with SYNC_STRIP_TZ == True
I just opened an issue on GitHub about this already, but I'll summarize the issue. When using the 'peeringdb sync' command from the Python peeringdb module, the 'since' Unix timestamp is calculated incorrectly. The dates are properly stored in the database in UTC, but the Unix timestamp is calculated using the local timezone via mtkime. So us poor people West of UTC will get a Unix timestamp which is ahead of where it should be. So any records created/updated in this gap will be missed. Being in UTC-7/-8 that gap is pretty big and we hit this all time now. I didn't seem to see it as much earlier, but this could be due to increased usage of PeeringDB over the past year or two. This issue is probably not affecting anyone East of UTC because their timestamps will be behind where it ought to be which is fine because you get duplicate updates which just get merged.
Will check it out, thanks. * Milton Ngan <milton@valvesoftware.com> [170406 15:30 +0000]:
I just opened an issue on GitHub about this already, but I'll summarize the issue. When using the 'peeringdb sync' command from the Python peeringdb module, the 'since' Unix timestamp is calculated incorrectly. The dates are properly stored in the database in UTC, but the Unix timestamp is calculated using the local timezone via mtkime. So us poor people West of UTC will get a Unix timestamp which is ahead of where it should be. So any records created/updated in this gap will be missed. Being in UTC-7/-8 that gap is pretty big and we hit this all time now. I didn't seem to see it as much earlier, but this could be due to increased usage of PeeringDB over the past year or two.
This issue is probably not affecting anyone East of UTC because their timestamps will be behind where it ought to be which is fine because you get duplicate updates which just get merged.
* Milton Ngan <milton@valvesoftware.com> [170406 15:30 +0000]:
I just opened an issue on GitHub about this already
Fixed, released as version 0.4.0. Good catch, thanks :) * https://github.com/peeringdb/django-peeringdb/issues/9
participants (2)
-
Matt Griswold -
Milton Ngan