Out-of-order dates under wine

Posted By: GPEngine

Out-of-order dates under wine - 05/15/15 15:59

Code:
function run() {
  StartDate = 20141125;
  EndDate = 20141205;
  BarPeriod = 60;
  Weekend = 1;
  set(PLOTNOW);

  if (day() != day(1)) {
    printf("\n%d-%02d-%02d", year(), month(), day());
  }
}

Observed: Plot omits all of December.
Observed: Zorro thinks Jan 1, 2015 comes between Nov and Dec 2014.
Code:
2014-11-24
2014-11-25
2014-11-26
2014-11-27
2014-11-28
2014-11-30
2015-01-01
2014-12-02
2014-12-03
2014-12-04
2014-12-05


Posted By: GPEngine

Re: Critical date bug with Weekend = 1 - 05/21/15 05:41

I think I broke jcl.
Posted By: Sundance

Re: Critical date bug with Weekend = 1 - 05/21/15 06:46

Wow.
It drops 2014-12-01. Seems it was replaced with 2015-01-01.
Posted By: jcl

Re: Critical date bug with Weekend = 1 - 05/22/15 08:47

Hmm, I can not see any those problems, neither with the current beta nor with the past release.

2014-11-24
2014-11-25
2014-11-26
2014-11-27
2014-11-28
2014-11-30
2014-12-01
2014-12-02
2014-12-03
2014-12-04
2014-12-05
Generate Chart - please wait... ok

Are you sure you produced that January day with your script above? Have you changed something with the historical price data?
Posted By: GPEngine

Re: Critical date bug with Weekend = 1 - 05/22/15 11:13

Ugh. It only happens in Zorro under wine.
Posted By: jcl

Re: Critical date bug with Weekend = 1 - 05/22/15 11:40

Could be a bug of the OLEDateTime function of Wine. We'll have to look further into it. Until this is resolved, I'll put a note in the manual to not use Zorro with Wine. Thanks for reporting!

© 2024 lite-C Forums