API Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jpennington
    Member
    • Jun 2018
    • 52

    API Issue

    I am trying to POST data through the espocrm API to a custom entity that has a date-time field. The problem I am trying to fix is that the “time” changes after the time is posted. The time before POST is in EST and I think the time is changing to UTC after POST.

    Has anyone had this issue? Or know how to fix the issue?
  • emillod
    Active Community Member
    • Apr 2017
    • 1405

    #2
    Hello.
    It's not a bug or issue, it's normal thing, espocrm store dates in UTC. If you're sending something through POST, you should Convert date to EST.

    Comment

    • SarbjitGrewal
      Junior Member
      • Mar 2021
      • 3

      #3
      Originally posted by jpennington
      I am trying to POST data through the espocrm API to a custom entity that has a date-time field. The problem I am trying to fix is that the “time” changes after the time is posted. The time before POST is in EST and I think the time is changing to UTC after POST.

      Has anyone had this issue? Or know how to fix the issue?
      To fix it out, you just need to change the date everytime you are sending anything through POST.

      Comment

      • jpennington
        Member
        • Jun 2018
        • 52

        #4
        oh that explains everything. Thank you!

        Comment

      Working...