Unlocking the timestamp from a URL desyncs unix time
Closed this issue · 1 comments
When you follow a locked link to the HammerTime page and then unlock the timestamp to edit it, the unix time desyncs because the timezone is changed from GMT to local time zone. When unlocking changes the time zone, it should also convert the input time fields so the unix time stays the same, because that is more important. Locking the timestamp also changes the time zone to GMT without converting the input fields, so the unix time get desynced in that case too.
"Unlocking" currently does not attempt to preserve the timestamp selection, this is by design due to the complexity/limitations of the current approach of rendering the site. I hope to improve on this as part of the SledgeHammerTime rewrite of the project.
There the time selection is already kept in the URL without a separate lock/unlock step.