Actions
Bug #17556
closedISC dhcpd provider potentially discards leases too early or too late
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Description
Time comparison on this line: https://github.com/theforeman/smart-proxy/blob/develop/modules/dhcp_isc/isc_state_changes_observer.rb#L65 can result in lease being discarded too early or too late due to difference in timezones: lease time is in UTC timezone, while Time.now returns current time in the local time zone.
Updated by Anonymous about 7 years ago
- Status changed from New to Rejected
The comparison works correctly -- ruby automatically converts times on both sides of the comparison to the same timezone.
Actions