Skip to main content
Solved

Embedded app - Call startTime format is as "1591774064578". when we access this from the Windows.Phone.CallLogs.Calls object. Please help on the format

  • June 10, 2020
  • 1 reply
  • 299 views

Embedded app - Call startTime format is as "1591774064578". when we access this from the Windows.Phone.CallLogs.Calls object. Please help on the format

Best answer by PhongVu

It is the timestamp rather than the time. If other time fields in that call log is the time, then it is a mistake that the app does not convert the timestamp to the time. If all the time fields are the same or that is the only time field, then it might be logged as a timestamp (based on UTC time) on purpose to make it easy to convert to a local time. You can convert the timestamp to a time e.g. in Javascript as follow:

var startTime = new Date(callStartTime).toISOString()


View original
Did this thread help you find an answer to your question?

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • June 10, 2020

It is the timestamp rather than the time. If other time fields in that call log is the time, then it is a mistake that the app does not convert the timestamp to the time. If all the time fields are the same or that is the only time field, then it might be logged as a timestamp (based on UTC time) on purpose to make it easy to convert to a local time. You can convert the timestamp to a time e.g. in Javascript as follow:

var startTime = new Date(callStartTime).toISOString()



Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings