#581 fixing issue with last_n_items of timestamp

Resolves #581