Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hour-level granularity does not work #177

Open
StilesCrisis opened this issue Aug 31, 2023 · 6 comments
Open

Hour-level granularity does not work #177

StilesCrisis opened this issue Aug 31, 2023 · 6 comments

Comments

@StilesCrisis
Copy link

StilesCrisis commented Aug 31, 2023

The docs aren't clear on time window granularity, they only give examples:

Use any form of /remind me [what] [when], such as:

  • /remind me to deploy on Oct 10
  • /remind me next Monday to review the requirements
  • /remind me that the specs on the rotary girder need checked in 6 months

I did not notice that these are actually all day-level granularity.
When I was testing my installation, I did

/remind me to set due date in 4 hours

This generated a reminder only a few minutes later:

Screenshot 2023-08-31 at 2 28 25 PM

NOTE: this could be considered either a documentation bug or a feature request—your call.

@stdavis
Copy link
Member

stdavis commented Aug 31, 2023

Great catch. I don't believe that we've ever tried this at more than a day-level granularity. Are you interested in submitting a PR to make this enhancement?

@StilesCrisis
Copy link
Author

I was barely able to install the action—I'm not quite at the level of adding features quite yet! Sorry.

@steveoh
Copy link
Member

steveoh commented Oct 5, 2023

https://www.npmjs.com/package/parse-reminder is the package we use to parse natural language reminders into who, what, and when. They have an example of:

remind me in 10 minutes to change the laundry

So your 4 hour request is actually working.

> var parseReminder=require('parse-reminder')
> parseReminder('remind me set a due date in 4 hours')
{ who: 'me', what: 'set a due date', when: 2023-10-04T15:14:54.000Z }

We are using toLocaleDateString to format the date in the comments which doesn't show the time.

Your reminder should work, as long as you have your reminder action running on an hourly frequency it will remind you.

So this is probably a formatting "bug". But since the time at which you will be notified is based on the frequency of your reminder action, it will not always be accurate to show the time. So I'm inclined to leave it as is.

Thoughts?

@StilesCrisis
Copy link
Author

StilesCrisis commented Oct 5, 2023 via email

@steveoh
Copy link
Member

steveoh commented Oct 5, 2023

You're probably right. The next place to look would be the hidden comment format. We may strip the time there also.

@nessita
Copy link

nessita commented Feb 13, 2024

I think I'm affected by this issue as well. I was trying to use a 15 minute granularity for the reminders, and to test it, I defined a reminder like this:

/remind me to check on this in 20 minutes

When the create reminder action ran, this was the debug payload:

2024-02-13T19:41:16.8330145Z {
2024-02-13T19:41:16.8330766Z  "who": "nessita",
2024-02-13T19:41:16.8332664Z  "what": "check on this",
2024-02-13T19:41:16.8333555Z  "when": "2024-02-13T09:01:16.000Z"
2024-02-13T19:41:16.8334175Z }

The when value is correct and accurate, but the reminder was posted only after 4 minutes (that is the next time the "check reminders" action ran).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants