Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit ccf9473

Browse files
committed
Add date format examples
1 parent 9573eb1 commit ccf9473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SlashCommands.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,14 @@ export const Commands = [
290290
new Command({
291291
command: 'jumptodate',
292292
args: '<date>',
293-
description: _td('Jump to the given date in the timeline'),
293+
description: _td('Jump to the given date in the timeline (YYYY-MM-DD)'),
294294
isEnabled: () => SettingsStore.getValue("feature_jump_to_date"),
295295
runFn: function(roomId, args) {
296296
if (args) {
297297
return success((async () => {
298298
const unixTimestamp = Date.parse(args);
299299
if (!unixTimestamp) {
300-
throw new Error(`Unable to parse given date ${args}`);
300+
throw new Error(`We were unable to understand the given date (${args}). Try using the format YYYY-MM-DD.`);
301301
}
302302

303303
const cli = MatrixClientPeg.get();

0 commit comments

Comments
 (0)