cloud timestamps
Posted: Thu Aug 08, 2019 10:57 am
Hi
I'm reading the php for the cloud save solution: Am I correct in assuming that the timestamp is generated clientside ?
This is potentially problematic, if true.
Assume two users are in different timezones, and accessing the same file, at about the same time. user1, in NY will timestamp with NY time, while user2 in copenhagen will timestamp with copenhagen time. the timestamps will be useless, and if you use them for checking file integrity or something like that, they will be error prone.
suggestion: Set and check timestamps in php directly: In that way, you will get SERVER time on the timestamps, and timestamps will be internally consistent.
Unless I'm missing something ? I'm not trying to be a dick here: I really like easySave, and would love to keep using it, I just want the kinks to be sorted out
I'm reading the php for the cloud save solution: Am I correct in assuming that the timestamp is generated clientside ?
This is potentially problematic, if true.
Assume two users are in different timezones, and accessing the same file, at about the same time. user1, in NY will timestamp with NY time, while user2 in copenhagen will timestamp with copenhagen time. the timestamps will be useless, and if you use them for checking file integrity or something like that, they will be error prone.
suggestion: Set and check timestamps in php directly: In that way, you will get SERVER time on the timestamps, and timestamps will be internally consistent.
Unless I'm missing something ? I'm not trying to be a dick here: I really like easySave, and would love to keep using it, I just want the kinks to be sorted out