Fix expired() calculation,

Now comparing date as `Date`s when restoring from session.
Dist update