Skip to content
This repository has been archived by the owner on Apr 3, 2021. It is now read-only.

[Feat] Show "last updated" #163

Closed
davipt opened this issue Aug 13, 2019 · 1 comment
Closed

[Feat] Show "last updated" #163

davipt opened this issue Aug 13, 2019 · 1 comment

Comments

@davipt
Copy link

davipt commented Aug 13, 2019

On "Consultar", it would be nice to see the time of the last-updated so we know how state is the information of the status of a fuel station.

there seems to be timestamps on the DB, and on app/Http/Controllers/CacheController.php it should be possible to write the updated timestamp on the cache.JSON file, on the line
$json = FuelStation::all('id', 'name', 'brand', 'long', 'lat', 'repa', 'sell_gasoline', 'sell_diesel', 'sell_lpg', 'has_gasoline', 'has_diesel', 'has_lpg')->toJson();
and then adapt the html+javascript to show the date on the box of the fuel station status

@miguelantoniosantos
Copy link
Member

Duplicate of #134

@miguelantoniosantos miguelantoniosantos marked this as a duplicate of #134 Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants