{"id":23626384,"url":"https://github.com/yetanalytics/datechanger","last_synced_at":"2025-11-07T17:30:41.360Z","repository":{"id":72024860,"uuid":"480977749","full_name":"yetanalytics/datechanger","owner":"yetanalytics","description":"Updates statement timestamps to begin at specified date","archived":false,"fork":false,"pushed_at":"2022-04-19T12:58:30.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-12-27T23:13:27.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yetanalytics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-12T21:25:48.000Z","updated_at":"2022-04-19T12:57:31.000Z","dependencies_parsed_at":"2023-05-05T10:30:43.123Z","dependency_job_id":null,"html_url":"https://github.com/yetanalytics/datechanger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetanalytics%2Fdatechanger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetanalytics%2Fdatechanger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetanalytics%2Fdatechanger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetanalytics%2Fdatechanger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yetanalytics","download_url":"https://codeload.github.com/yetanalytics/datechanger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239533854,"owners_count":19654773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-27T22:53:12.428Z","updated_at":"2025-11-07T17:30:41.317Z","avatar_url":"https://github.com/yetanalytics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xAPI Statement Date Changer\n\nSimple CLI script that updates xAPI Statement timestamps to start at provided date.\n\nThere are 3 CLI arguments\n1. `date` (Required) - desired timestamp value for most recent xAPI Statement\n  * e.g. `\"2022-04-12T12:00:00Z\"`\n2. `sourceFile` (Required) - path to JSON file which contains xAPI Statements to update\n  * e.g. `./data/example_data.json`\n3. `targetFile` (Optional) - path to JSON file to store updated xAPI Statements in\n  * e.g. `./data/example_output_data.json`\n\nAn error is thrown when\n* `date` and/or `sourceFile` are not provided.\n* an xAPI Statement within the `sourceFile` does not contain `$.timestamp`\n\n## Usage\n\n`node datechanger.js \"2022-04-12T12:00:00Z\" ./data/example_data.json`\n\n- logs updated xAPI Statements to out\n\n`node datechanger.js \"2022-04-12T12:00:00Z\" ./data/example_data.json ./data/example_output_data.json`\n\n- writes updated xAPI Statements to \"example_output_data\" JSON file within the data directory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyetanalytics%2Fdatechanger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyetanalytics%2Fdatechanger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyetanalytics%2Fdatechanger/lists"}