Commit 1f7790 <https://github.com/weewx/weewx/commit/1f7790d46ca74fdd926508c10fcfa0e771e49052>
Thanks, Mike! On Wed, Feb 10, 2021 at 7:30 AM Mike Revitt <[email protected]> wrote: > Whilst trying to create some long term graphs I discovered a bug in > utilities.py at line 297 > > *elif* tdelta < 2 * 365.25 * 24 * 3600 : > > # The time scale is between a month and 2 years. A time increment > of a month is appropriate > > start_dt = tmin_dt.replace(day=1, hour=0, minute=0, second=0, > microsecond=0) > Should read > > *elif* tdelta <= 2 * 365.25 * 24 * 3600 : > > # The time scale is between a month and 2 years. A time increment > of a month is appropriate > > start_dt = tmin_dt.replace(day=1, hour=0, minute=0, second=0, > microsecond=0) > Otherwise it doesn't trap values of exactly 2 years. it is <= everywhere > else > > -- > You received this message because you are subscribed to the Google Groups > "weewx-development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-development/f4bbe42b-44a7-48c5-960a-8ed7e73bd2c5n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/f4bbe42b-44a7-48c5-960a-8ed7e73bd2c5n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/CAPq0zEBK%3DKVpbF3QZbmPagwhLLETgwG746C8q4w6JLCeeqAfow%40mail.gmail.com.
