duckduckgo/zeroclickinfo-spice — pull request #1198 by chrisjwilsoncom (2014-10-24 09:27:00+00:00)
Title: Time IA

This is still a WIP (*horrible code*), opening PR as requested by @mwmiller

Example queries: `what is the time in Amsterdam`, `time Amsterdam`

### :large_blue_circle: Notes:

1. Currently I'm limited to using a trial key which only gives me access to a single search result. As such haven't been able to test with the API returning multiple search results for a location. I'm simply using the first location returned.

2. See an example of the [response received](https://gist.github.com/chrisjwilsoncom/00e065f7f3c10f81b51b) from the timeanddate API.

3. Need to add some more test cases and add some regexp guards to the time.pm.

### :red_circle: Known Issues:

1. I've used a `setInterval` function to create a live clock that updates every second. The first version was simply a static clock. There are quite a few issues with using [Javascript timer](http://www.sitepoint.com/creating-accurate-timers-in-javascript/) functions. **Please let me know if the clock should be static or live?**

2. The design is very minimal and I think I'm using the wrong line-height for the sub-text :grin:, it would be great to make it stand out a little more. See the [fullscreen example](https://cloud.githubusercontent.com/assets/5282264/4767490/40188f82-5b5e-11e4-8b14-41bebc89babe.png) on timeanddate.com

3. The returned timezone offset should probably be displayed as `(+2)` rather then `(+02:00)`

4. The meta sourceUrl needs to be linked to the timeanddate.com pagfe.

**Dark**
![timelookdark](https://cloud.githubusercontent.com/assets/5282264/4767371/0f1adb3e-5b5d-11e4-9682-c324a9c32387.png)

**Default**
![timelook](https://cloud.githubusercontent.com/assets/5282264/4767372/0f202ff8-5b5d-11e4-879a-4d61514de661.png)

@jagtalon @moollaza