core: fix timestamp assignment