]> git.madduck.net Git - etc/awesome.git/blobdiff - examples/os_date.lua

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:

luatz/tzfile: Make use of IDIV opcode when available (Lua 5.3+)
[etc/awesome.git] / examples / os_date.lua
index 0164780f7e3c3bfa02fe630c97622b5b4b9e5814..deac08b9ed34af5abf49df0b293ed452a595e4ef 100644 (file)
@@ -14,7 +14,7 @@ local function os_date ( format_string , timestamp )
        else -- Localtime
                timestamp = get_tz ( ):localise ( timestamp )
        end
        else -- Localtime
                timestamp = get_tz ( ):localise ( timestamp )
        end
-       local tt = new_from_timestamp ( timestamp ):normalise ( )
+       local tt = new_from_timestamp ( timestamp )
        if format_string == "*t" then
                return tt
        else
        if format_string == "*t" then
                return tt
        else