make getHistory at least be a promise
make timestamp a string before substringing