summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-03-13 14:18:15 +0545
committerRenato Botelho <garga@FreeBSD.org>2015-03-26 11:08:45 -0300
commit6eb5191b7c92186e242481699f51cc8b4e55646c (patch)
treeba71c425f9048af036df70e33b5043c4458d7b01 /etc
parent3c3a3bf9c5a691786d65afa78914d5e498530663 (diff)
downloadpfsense-6eb5191b7c92186e242481699f51cc8b4e55646c.zip
pfsense-6eb5191b7c92186e242481699f51cc8b4e55646c.tar.gz
Status DHCP Leases handle expire never
Note: We can let the code pass "never" (or any other unexpected stuff) to adjust_gmt() adjust_gmt() should anyway handle the case when strtotime() cannot understand the input string and thus returns false. In that case we return the input string as-is so it will be displayed as the time. That way the user will see it and can report easily whatever other unexpected char data was in the leases file. It also prevents "false" (zero) being converted to the date-time string and thus becoming the Unix epoch 1 Jan 1970 on the display. Latest forum report of this kind of thing: https://forum.pfsense.org/index.php?topic=90083.0
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud