Giter Club home page Giter Club logo

Comments (7)

Habbie avatar Habbie commented on May 18, 2024

And/or times in the local timezone (I believe this can be figured out from JavaScript, at least when running in the browser and not in the zeroclick API).

from zeroclickinfo-goodies.

arunsrin avatar arunsrin commented on May 18, 2024

I feel that the @_gagan's relative time will still have the same drawback, e.g: if DDG's server time is 12PM and a cron job is run every day at 2PM, the relative result of "After 2 hours" will still be incorrect for users in, say, the DDG+4 timezone (they would expect "After 22 hours" instead).

@Habbie's fix is the best case scenario, but I fear this is beyond my skill. There are a couple of other fixes I do have in mind:

a) Show the time in UTC to eliminate confusion. e.g.
Cron will start this event next at 12:42:00 on 2 Feb, 2013 UTC.

b) Show the next 3 events to make it clearer. e.g.
Cron will start this event next at the following times:
06:01:00 on 15 May, 2012.
06:02:00 on 15 May, 2012.
06:03:00 on 15 May, 2012.
Not the best fix, but this at least clearly shows that the cron job is run per minute, irrespective of timezone.

Any suggestions?

from zeroclickinfo-goodies.

yegg avatar yegg commented on May 18, 2024

I like option b) a lot as I often want to know a few times it will start. Also we could change the wording a bit to indicate like Cron will schedule this job at this frequency:

from zeroclickinfo-goodies.

Habbie avatar Habbie commented on May 18, 2024

+1 for option b

Gabriel Weinberg [email protected] wrote:

I like option b) a lot as I often want to know a few times it will
start. Also we could change the wording a bit to indicate like Cron
will schedule this job at this frequency:


Reply to this email directly or view it on GitHub:
#95 (comment)

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

from zeroclickinfo-goodies.

gaganpreet avatar gaganpreet commented on May 18, 2024

Didn't occur to me relative time would suffer from the same drawback. Javascript will be the perfect solution, but if that's not possible, showing the time/date and linking to WolframAlpha with the query will show better details.

from zeroclickinfo-goodies.

KamilaBorowska avatar KamilaBorowska commented on May 18, 2024

This was fixed, why it wasn't closed yet?

from zeroclickinfo-goodies.

moollaza avatar moollaza commented on May 18, 2024

Closing. Looks to have been fixed in a0d1a1f

from zeroclickinfo-goodies.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.