Why don't you just check the value of ExpiryDate before converting it?
The constants are in Links.pm
UNLIMITED => 0x7fff_fffe,
FREE => 0x7fff_ffff;
If it's greater than $ExpiryDate > UNPAID and $ExpiryDate < UNLIMITED then convert it from a unixtime (GT::Date::date_get($ExpiryDate, 'your format').
Adrian
The constants are in Links.pm
Code:
UNPAID => -1, UNLIMITED => 0x7fff_fffe,
FREE => 0x7fff_ffff;
If it's greater than $ExpiryDate > UNPAID and $ExpiryDate < UNLIMITED then convert it from a unixtime (GT::Date::date_get($ExpiryDate, 'your format').
Adrian