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

Scene struct created_at and updated_at fields need to be converted differently #6

Open
panicpanicpanic opened this issue Nov 15, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@panicpanicpanic
Copy link
Owner

GetScenes currently returns this error:
parsing time "1542058561" as ""2006-01-02T15:04:05Z07:00"": cannot parse "1542058561" as """

Might be an issue with the Scene struct:

type Scene struct {
	UUID      string            `json:"uuid"`
	Name      string            `json:"name"`
	Account   map[string]string `json:"account"`
	CreatedAt time.Time         `json:"created_at"`
	UpdatedAt time.Time         `json:"updated_at"`
	States    []State           `json:"states"`
}
@panicpanicpanic panicpanicpanic added the bug Something isn't working label Nov 15, 2018
@panicpanicpanic panicpanicpanic self-assigned this Nov 15, 2018
@panicpanicpanic
Copy link
Owner Author

I don't think time.Time will work here.

@panicpanicpanic panicpanicpanic changed the title [Bug] Scene struct created_at and updated_at fields need to be converted differently Scene struct created_at and updated_at fields need to be converted differently Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant