appwrite / console

The Console that makes Appwrite tick from the browser 🖥
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
325 stars 138 forks source link

Fix next execution showing n/a #1151

Closed stnguyen90 closed 3 months ago

stnguyen90 commented 3 months ago

What does this PR do?

In a previous version of Appwrite, there was a next attribute with the timestamp of when the function would be executed next. That was removed, but the Console has not been updated to show the correct timestamp.

This PR installs cron-parser package and uses it to convert the schedule to a human readable timestamp.

Fixes #851

Test Plan

With a schedule of 0 0 * * *

Before

image

After

image

This is correct because 0 0 * * * is midnight UTC, which converts to 17:00 where I am (PT).

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

Yes

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console-1.6 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2024 0:14am
console-billing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2024 0:14am
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2024 0:14am
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2024 0:14am
console-preview-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2024 0:14am