Bug fix (incorrect variable passed to date2timestamp).