Github user WangTaoTheTonic commented on the issue:

    https://github.com/apache/spark/pull/15803
  
    
![historyserver](https://cloud.githubusercontent.com/assets/5276001/20304529/af3d0c30-ab6b-11e6-887d-fbf8fb09ebab.jpg)
    
    Like what showed in image, user can get app infos in two ways: using 
browser and using REST api. When a browser send a http request, History Server 
will return history page(a html page) containing application infos in which the 
Date is translated to string. Because the translation is done in server side, 
so the date string is represented with server timezone. If user uses REST api 
to get app infos, History Server will return json objects containing Date 
object w/o timezone, so the REST response always shows date like ` "startTime" 
: "2016-11-11T06:27:25.802GMT"`, which means in GMT time(as no timezone 
available).
    
    After 2.0, one way accessing History Server changed: browser ways(the red 
highlighten part). Browser will get app infos using REST api rather than 
getting whole history page (in order to generate table in front end to 
implementing sort and search). The result it got only containing Date w/o 
timezone instead of date string translated by Server using server timezone. The 
way browser get app datas changed, that's why the browser behavior changes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to