Skip to content

Commit aff9b39

Browse files
authored
Update time-travel.mdx - fix date command (#23227)
Mixup in param order for date command `+%s` and not `%+s` to get unix timestamp
1 parent 19d5638 commit aff9b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/d1/reference/time-travel.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,6 @@ Refer to the guide [Export and save D1 database](/workflows/examples/backup-d1/)
128128

129129
## Notes
130130

131-
- You can quickly get the Unix timestamp from the command-line in macOS and Windows via `date %+s`.
131+
- You can quickly get the Unix timestamp from the command-line in macOS and Windows via `date +%s`.
132132
- Time Travel does not yet allow you to clone or fork an existing database to a new copy. In the future, Time Travel will allow you to fork (clone) an existing database into a new database, or overwrite an existing database.
133133
- You can restore a database back to a point in time up to 30 days in the past (Workers Paid plan) or 7 days (Workers Free plan). Refer to [Limits](/d1/platform/limits/) for details on Time Travel's limits.

0 commit comments

Comments
 (0)