Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 14:26:41 +0000



Post From: Creating a Chart Drawing DRAWING_HORIZONTAL_LINE_NON_EXTENDED -Sets Wrong Year on End Time

[2023-01-05 16:53:13]
Sierra123 - Posts: 21
I think I found a bug in the SierraChart code.

I have a function which uses sc.UseTool() to create a line using DRAWING_HORIZONTAL_LINE_NON_EXTENDED, with the Tool.EndDateTime set to a date in the year 2022. I print out the value before calling the function using the GetYear() and verified it is set correctly, but then I look up on the UI Manage Chart Drawings and the anchor is set to the year 2023 (current year). The month,day,hour,minute,second values are correct, just the year is wrong. I also verified by looking up the drawing after creating it and printing out the EndDateTime and also saw it was set to 2023.

The StartDateTime field works correctly when using prior years.



Please update me.
Thank you.