retailnext/node-radius — pull request #8 by youngneh (2014-06-17 17:07:21+00:00)
Title: fix bug where Event-Timestamp cannot write to buffer as a Date

When the Event-Timestamp attribute (or any attribute that has a date value) gets passed in a Date object, the in_value.getTime() / 1000 returns a float instead of a integer and when it tries to write this to a buffer as an unsigned integer there is an error. This bug fix converts the float into an integer with the use of the floor function.