emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kevin Brubeck Unhammer <unhammer@fsfe.org>
To: emacs-orgmode@gnu.org
Subject: Bug: clocktable thinks Oct 29 is Oct 28 [9.1.14 (release_9.1.14-1012-g643481 @ /home/unhammer/src/org-mode/lisp/)]
Date: Wed, 31 Oct 2018 10:24:08 +0100	[thread overview]
Message-ID: <874ld25v0n.fsf@fsfe.org> (raw)

Hi,

I did

$ git clone https://code.orgmode.org/bzg/org-mode.git

(which got me 643481fade386aa51d88ccc22b9669b0b77daaa1 )

$ cd org-mode
$ make autoloads
$ emacs -Q -l /tmp/init.el /tmp/foo.org

where /tmp/init.el has:

(add-to-list 'load-path "~/src/org-mode/lisp")
(require 'org)


and /tmp/foo.org has:


#+STARTUP: showall

* Top

#+BEGIN: clocktable :maxlevel 3  :tstart "2018-10-01" :tend "2018-11-01" :step day :stepskip0 t

#+END:

** TODO Undeobfuscate widget
    :LOGBOOK:
    CLOCK: [2018-10-29 må. 14:17]--[2018-10-29 må. 14:35] =>  0:18
    :END:
** DONE Deobfuscate widget
    :LOGBOOK:
    CLOCK: [2018-10-28 su. 14:17]--[2018-10-28 su. 14:35] =>  0:18
    :END:


and then, on the BEGIN line, I did C-c C-c. This gave me:
#+STARTUP: showall

* Top

#+BEGIN: clocktable :maxlevel 3  :tstart "2018-10-01" :tend "2018-11-01" :step day :stepskip0 t

Daily report: [2018-10-28 su.]
| Headline               | Time   |      |
|------------------------+--------+------|
| *Total time*           | *0:18* |      |
|------------------------+--------+------|
| Top                    | 0:18   |      |
| \_  Deobfuscate widget |        | 0:18 |

Daily report: [2018-10-28 su.]
| Headline                 | Time   |      |
|--------------------------+--------+------|
| *Total time*             | *0:18* |      |
|--------------------------+--------+------|
| Top                      | 0:18   |      |
| \_  Undeobfuscate widget |        | 0:18 |

#+END:

** TODO Undeobfuscate widget
    :LOGBOOK:
    CLOCK: [2018-10-29 må. 14:17]--[2018-10-29 må. 14:35] =>  0:18
    :END:
** DONE Deobfuscate widget
    :LOGBOOK:
    CLOCK: [2018-10-28 su. 14:17]--[2018-10-28 su. 14:35] =>  0:18
    :END:

The second date is 28, where it should be 29. I see the same on org-mode
9.1.9 (bundled with Emacs 26.1) or 9.1.12 and 9.1.14 from melpa-stable,
gnu elpa.

I do *not* see this in 8.2.10 bundled with Emacs 25.3.2.

The bug is also there without ":stepskip0 t" 


Emacs  : GNU Emacs 25.3.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.29)
 of 2018-04-19
Package: Org mode version 9.1.14 (release_9.1.14-1012-g643481 @ /home/unhammer/src/org-mode/lisp/)

current state:
==============
(setq
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
		      org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-activate
			  org-babel-speed-command-activate)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
		     org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '((closure
		  (org--rds reftex-docstruct-symbol orgtbl-line-start-regexp
		   org-element-greater-elements org-table-coordinate-overlays
		   org-table-auto-blank-field org-clock-history
		   org-agenda-current-date org-with-time org-defdecode org-def
		   org-read-date-inactive org-ans2 org-ans1
		   org-columns-current-fmt-compiled org-clock-current-task
		   org-clock-effort org-agenda-skip-function
		   org-agenda-skip-comment-trees org-agenda-archives-mode
		   org-end-time-was-given org-time-was-given
		   org-log-note-extra org-log-note-purpose
		   org-log-post-message org-last-inserted-timestamp
		   org-last-changed-timestamp
		   org-entry-property-inherited-from org-blocked-by-checkboxes
		   org-state org-agenda-headline-snapshot-before-repeat
		   org-capture-last-stored-marker org-agenda-start-on-weekday
		   org-agenda-buffer-tmp-name
		   clean-buffer-list-kill-buffer-names
		   org-id-link-to-org-use-id org-agenda-buffer-name
		   org-priority-regexp buffer-face-mode-face org-mode-map
		   org-tbl-menu org-org-menu org-struct-menu org-entities
		   org-last-state org-id-track-globally org-clock-start-time
		   texmathp-why remember-data-file
		   org-agenda-tags-todo-honor-ignore-options
		   iswitchb-temp-buflist calc-embedded-open-mode
		   calc-embedded-open-formula calc-embedded-close-formula
		   align-mode-rules-list org-emphasis-alist
		   org-emphasis-regexp-components
		   org-export-registered-backends org-modules
		   org-babel-load-languages org-indent-indentation-per-level
		   org-element-paragraph-separate ffap-url-regexp
		   org-inlinetask-min-level t)
		  nil
		  (add-hook (quote change-major-mode-hook)
		   (quote org-show-all) (quote append) (quote local))
		  )
		 (closure
		  (org-bracket-link-regexp org-src-window-setup *this*
		   org-babel-confirm-evaluate-answer-no
		   org-src-preserve-indentation org-src-lang-modes
		   org-link-file-path-type org-edit-src-content-indentation
		   org-babel-library-of-babel t)
		  nil
		  (add-hook (quote change-major-mode-hook)
		   (quote org-babel-show-result-all) (quote append)
		   (quote local))
		  )
		 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-bibtex-headline-format-function '(closure
				       (org-id-locations
					org-agenda-search-view-always-boolean
					org-agenda-overriding-header t)
				       (entry) (cdr (assq :title entry)))
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
		  org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("id" :follow org-id-open)
		       ("eww" :follow eww :store org-eww-store-link)
		       ("rmail" :follow org-rmail-open :store
			org-rmail-store-link)
		       ("mhe" :follow org-mhe-open :store org-mhe-store-link)
		       ("irc" :follow org-irc-visit :store org-irc-store-link
			:export org-irc-export)
		       ("info" :follow org-info-open :export org-info-export
			:store org-info-store-link)
		       ("gnus" :follow org-gnus-open :store
			org-gnus-store-link)
		       ("docview" :follow org-docview-open :export
			org-docview-export :store org-docview-store-link)
		       ("bibtex" :follow org-bibtex-open :store
			org-bibtex-store-link)
		       ("bbdb" :follow org-bbdb-open :export org-bbdb-export
			:complete org-bbdb-complete-link :store
			org-bbdb-store-link)
		       ("w3m" :store org-w3m-store-link) ("file+sys")
		       ("file+emacs") ("doi" :follow org--open-doi-link)
		       ("elisp" :follow org--open-elisp-link)
		       ("file" :complete org-file-complete-link)
		       ("ftp" :follow
			(lambda (path) (browse-url (concat "ftp:" path))))
		       ("help" :follow org--open-help-link)
		       ("http" :follow
			(lambda (path) (browse-url (concat "http:" path))))
		       ("https" :follow
			(lambda (path) (browse-url (concat "https:" path))))
		       ("mailto" :follow
			(lambda (path) (browse-url (concat "mailto:" path))))
		       ("news" :follow
			(lambda (path) (browse-url (concat "news:" path))))
		       ("shell" :follow org--open-shell-link))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

             reply	other threads:[~2018-10-31  9:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-31  9:24 Kevin Brubeck Unhammer [this message]
2018-10-31 12:13 ` Bug: clocktable thinks Oct 29 is Oct 28 [9.1.14 (release_9.1.14-1012-g643481 @ /home/unhammer/src/org-mode/lisp/)] Kevin Brubeck Unhammer
2018-11-01 15:18   ` [PATCH] " Kevin Brubeck Unhammer
2018-11-01 18:08     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874ld25v0n.fsf@fsfe.org \
    --to=unhammer@fsfe.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).