Datetime format changes based on time of day

22 views
Skip to first unread message

Fraser Parlane

unread,
Feb 21, 2020, 12:53:31 PM2/21/20
to TransLink Developers

Hello!

I've noticed that the datetime format appears to change based upon the time of day I call the API.  For example, if I call https://api.translink.ca/RTTIAPI/V1/stops/61979/estimates?apiKey=[KEY]/ in the morning, I get expectedleavetime values that look like 10:14am, but if I call it in the evening I get values that look like 6:00pm 2020-02-19.  Why is the format changing based upon the time of day?  How do I stop it from doing this?  I'm rather new to this API, so I could be doing something very stupid.

Thanks for your help,

Fraser
Reply all
Reply to author
Forward
0 new messages