nhirschey / FSharp.Data.Fred

Wrapper for Federal Reserve Economic Data API https://nhirschey.github.io/FSharp.Data.Fred/
MIT License
2 stars 3 forks source link

Updated JsonApi.js so that timezone is Central America Time #18

Closed DavideGCosta closed 11 months ago

DavideGCosta commented 11 months ago

1. Added function to Helpers:

    let cstNow =
        let utcNow = DateTime.UtcNow
        let cstZone = TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time")
        TimeZoneInfo.ConvertTimeFromUtc(utcNow, cstZone)

2. Changed all instances of DateTime.Now to Helpers.cstNow

@nhirschey could you review and let me know if this logic closes #16 ?

nhirschey commented 11 months ago

Looks great. Thank you!