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

Handle relative time on argument parsing for time.Time type. #1160

Closed
remyleone opened this issue Jul 2, 2020 · 1 comment
Closed

Handle relative time on argument parsing for time.Time type. #1160

remyleone opened this issue Jul 2, 2020 · 1 comment
Labels
bug core rdb Managed MySQL and PostgreSQL issues, bugs and feature requests
Milestone

Comments

@remyleone
Copy link
Member

remyleone commented Jul 2, 2020

Description:

How to reproduce:

Command attempted

$ scw rdb instance metrics ca6271c4-5182-4627-81c2-3d8a8542585b
Bad timestamp: parsing time "0001-01-01 00:00:00 +0000 utc" as "2006-01-02t15:04:05.999999999z07:00": cannot parse " 00:00:00 +0000 utc" as "t"
exit status 1

Expected Behavior

We would like to have relative and absolute timestamps parsing.

# Relative time
since=-3d
since=-3h
since=-3m
since=-3s
since=3d
since=3h
since=3m
since=3s

# Absolute time ISO8601

since=2020-07-04T12:00:00.42Z

Actual Behavior

More info

Version

version 2.0.0-beta.4+dev
build-date unknown
go-version go1.14.4
git-branch unknown
git-commit unknown
go-arch amd64
go-os darwin

@remyleone remyleone added bug rdb Managed MySQL and PostgreSQL issues, bugs and feature requests labels Jul 2, 2020
@jerome-quere jerome-quere added this to the v2.0.0 milestone Jul 3, 2020
@jerome-quere jerome-quere added core and removed rdb Managed MySQL and PostgreSQL issues, bugs and feature requests labels Jul 7, 2020
@jerome-quere jerome-quere modified the milestones: v2.0.0, v2.1.0 Jul 7, 2020
@jerome-quere jerome-quere changed the title Timestamp formatting bug in default rdb instance metrics Handle relative time on argument parsing for time.Time type. Jul 7, 2020
@jerome-quere
Copy link
Contributor

Duplicated by #1186

@remyleone remyleone added the rdb Managed MySQL and PostgreSQL issues, bugs and feature requests label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug core rdb Managed MySQL and PostgreSQL issues, bugs and feature requests
Projects
None yet
Development

No branches or pull requests

2 participants