zhang-accounting / zhang

账 - a plain text double-accounting tool which is compatible with beancount but more powerful
https://zhang-accounting.kilerd.me/
Apache License 2.0
177 stars 10 forks source link

timezone support #166

Closed Kilerd closed 1 year ago

Kilerd commented 1 year ago

unlike beancount, zhang support to mark directives with datetime, so we need to clarify which timezone is for the datetime. it's highly related to the statistic anlysis and data.

introduce a new option timezone, with default value server timezone.

Kilerd commented 1 year ago

should use chrono::Local::now().offset().local_minus_utc() to indicate server timezone as default timezone.