Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDPriceHistoryRequest startdate and enddate should use FromUnixTimeMilliseconds and ToUnixTimeMilliseconds, not to/from UnixTimeSeconds #9

Open
ag04sq17 opened this issue May 10, 2022 · 0 comments

Comments

@ag04sq17
Copy link

ag04sq17 commented May 10, 2022

 [JsonIgnore]
        public DateTime? EndDate
        {
            get
            {
                return endDate.HasValue ? TDHelpers.FromUnixTimeMilliseconds(endDate.Value) : (DateTime?)null;
            }
            set
            {
                endDate = value.HasValue ? TDHelpers.ToUnixTimeMilliseconds(value.Value) : (double?)null;
            }
        }

        [JsonIgnore]
        public DateTime? StartDate
        {
            get
            {
                return startDate.HasValue ? TDHelpers.FromUnixTimeMilliseconds(startDate.Value) : (DateTime?)null;
            }
            set
            {
                startDate = value.HasValue ? TDHelpers.ToUnixTimeMilliseconds(value.Value) : (double?)null;
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant