Skip to content

Commit

Permalink
fix(telemetry): ensure the recorded consent time includes a timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0n committed Dec 28, 2024
1 parent 262eba7 commit 9867edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruyi/telemetry/telemetry_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def configure_args(cls, p: argparse.ArgumentParser) -> None:

@classmethod
def main(cls, cfg: config.GlobalConfig, args: argparse.Namespace) -> int:
now = datetime.datetime.now()
now = datetime.datetime.now().astimezone()
with ConfigEditor.work_on_user_local_config(cfg) as ed:
ed.set_value((schema.SECTION_TELEMETRY, schema.KEY_TELEMETRY_MODE), "on")
ed.set_value(
Expand Down

0 comments on commit 9867edc

Please sign in to comment.