date-utilities: bugfix weekly render

This was introduced by 48bdab3.
This commit is contained in:
Christopher Lam 2018-02-28 22:10:38 +08:00
parent 7054cc83bc
commit 8fef1adcc4

View File

@ -91,19 +91,7 @@
604800))
(begin-string (qof-print-date (+ beginweekt64 345600)))
(end-string (qof-print-date (+ beginweekt64 864000))))
(format #f (_ "~s to ~s") begin-string end-string)))
; (let ((begin-string (qof-print-date
; (+ (* (gnc:date-get-week
; (gnc:time64-start-day-time
; (gnc-mktime datevec)))
; 604800) 345600)))
; (end-string (qof-print-date
; (+ (* (gnc:date-get-week
; (gnc:time64-start-day-time
; (gnc-mktime datevec)))
; 604800) 864000))))
; (format #f (_ "~s to ~s") begin-string end-string)))
(format #f (_ "~a to ~a") begin-string end-string)))
;; is leap year?
(define (gnc:leap-year? year)