Key metadata update + new timestamp conversion function