Compass icon indicating copy to clipboard operation
Compass copied to clipboard

Error Message issues due timestamp info

Open dshanske opened this issue 5 years ago • 0 comments

I came up with an interesting problem here

https://github.com/aaronpk/Compass/blob/c17f7b2ee237061c9f5de8fb63771120239084c1/compass/app/Http/Controllers/Api.php#L137

I'm storing in the database using no timezone offset. So just Z. But, if I send in an API query with an offset in the timezone, it responds, Exception in Shard.php line 199:

It should respond with a proper API error instead of a "Whoops, looks like something went wrong." message.

Not sure if you have any thoughts on the practical problem I have here. The app I used to send the data didn't have the option to send timestamp with offset so I didn't. I usually figure it out later for display purposes.

dshanske avatar Nov 09 '19 14:11 dshanske