]> git.madduck.net Git - etc/awesome.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

src/tzinfo: Fencepost bug
authordaurnimator <quae@daurnimator.com>
Mon, 22 Jul 2013 21:48:25 +0000 (17:48 -0400)
committerdaurnimator <quae@daurnimator.com>
Mon, 22 Jul 2013 21:48:25 +0000 (17:48 -0400)
src/tzinfo.lua

index 468694d2455268b39eb07dc02d2392f3a29c43a9..d347e059b9646f8882108caf2427ff2e0361acf8 100644 (file)
@@ -11,7 +11,7 @@ local function _find_current ( tzinfo , target , i , j )
 
        local half = math.ceil ( (j+i) / 2 )
 
 
        local half = math.ceil ( (j+i) / 2 )
 
-       if target > tzinfo [ half ].transition_time then
+       if target >= tzinfo [ half ].transition_time then
                return _find_current ( tzinfo , target , half , j )
        else
                return _find_current ( tzinfo , target , i , half-1 )
                return _find_current ( tzinfo , target , half , j )
        else
                return _find_current ( tzinfo , target , i , half-1 )