denoland / deploy_feedback

For reporting issues with Deno Deploy
https://deno.com/deploy
74 stars 5 forks source link

[KV Feedback]: Please use international time formats in Deploy Cron status #570

Closed cnrdh closed 9 months ago

cnrdh commented 9 months ago

🔍

Type of feedback

Feature request

Description

Please use the correct way to write a date in Deploy Cron status, or let the user decide locale via browser settings or input.

Dates likes 12/4 and also AM/PM are not accommodating to an international audience.

Name | Schedule | Last Run | Next Run
sync external data to kv | 11 * * * * | Succeeded (12/4/2023, 8:30:00 AM UTC) | 12/18/2023, 12:11:00 PM UTC

Steps to reproduce (if applicable)

Inspect Cron panel on https://dash.deno.com/projects/*/cron

Expected behavior (if applicable)

Using ISO date/time format with 24H clock

Possible solution (if applicable)

new Date("2023-12-18T11:11:11Z").toISOString().substring(0,10)
// "2023-12-18"

new Date("2023-12-18T11:11:11Z").toLocaleTimeString([],{ timeZone: "UTC", timeZoneName: "short" })
// "11:11:11 UTC"

Additional context

No response

igorzi commented 9 months ago

This should be fixed now