GithubHelp home page GithubHelp logo

Comments (7)

dave0 avatar dave0 commented on August 11, 2024

Updated by dave0000 on 2009-04-15T12:45:19

OCUA needs this for Summer '09

Added label ocua
Original ticket set status to Accepted (we converted to open)
Title changed from 'use sunset time instead of "dark" for game end times' to 'use sunset time instead of "dark" for game end times'

from leaguerunner.

dave0 avatar dave0 commented on August 11, 2024

Updated by dave0000 on 2009-04-20T02:33:34

Added label Milestone-2.7

from leaguerunner.

dave0 avatar dave0 commented on August 11, 2024

Updated by dave0000 on 2009-04-27T02:03:48

Implemented in r1077

Original ticket set status to Fixed (we converted to closed)

from leaguerunner.

dave0 avatar dave0 commented on August 11, 2024

Updated by trawna.com on 2009-04-28T01:09:06

Any particular reason that new config values were added for lat and long, instead of
using the lat and long for the field? I'd guess it's a failsafe, as lat and long for
the fields are not required values.

Also, there's a LOCAL_TZ value in leaguerunner.conf that is set in the environment by
index.php, which means that date('Z') would give a daylight-savings-time adjusted
value based on this setting, instead of needing another config value for this.

from leaguerunner.

dave0 avatar dave0 commented on August 11, 2024

Updated by dave0000 on 2009-04-28T01:23:01

Doing it on a per-field basis is a future thing, at least for OCUA. For one, we
don't have correct lat/long for all of our sites. Also, moving to a separate timecap
per field (and given the east-west width of Ottawa, it's quite possible that there
could be a different end time for this) is likely to be too confusing to introduce now.

Computing the TZ offset from LOCAL_TZ is a good idea; I'll change that on my next
checkin.

from leaguerunner.

dave0 avatar dave0 commented on August 11, 2024

Updated by trawna.com on 2009-04-28T01:40:11

How about
SELECT AVG(latitude) FROM field
instead? Maybe too slow to do frequently?
This seems to only include non-NULL values in the calculation.

from leaguerunner.

dave0 avatar dave0 commented on August 11, 2024

Updated by dave0000 on 2009-04-28T01:47:31

No... that's too nondeterministic. If someone adds a new field or updates the
lat/long of an existing one, the end time can change out from under you in the middle
of the season.

The right thing to do is to eventually use the field coordinates only, but that
should probably wait until we have the google maps integration for creating fields by
dropping a point in the right place on a map.

from leaguerunner.

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.