fix timestamps and prevent variable shadowing inside constructor

Although threre is no risk of mistakenly changing wrong variable when passing by reference, fix makes compiler to not issue a warning.