+1

Indeed, showing local (browser) time with clear timezone indication is the
best approach for the UI.

Dmitry
On Jun 13, 2016 9:32 AM, "Ishara Cooray" <[email protected]> wrote:

> With the workaround provided by Sameera, it shows the local TZ as below.
>
> *Welcome to the live log viewer.*
> *Mon Jun 13 2016 09:46:14 GMT+0530 (IST)
> org.wso2.carbon.core.deployment.DeploymentInterceptor*
>
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Mon, Jun 13, 2016 at 11:47 AM, Sameera Ramasinghe <[email protected]>
> wrote:
>
>> @Ruwan
>>
>> Yah storing in epoch time is correct. But in the thread, it was mentioned
>> that in the DAS, the time is displayed as IST. That time is not relevent to
>> us. That's why I mentioned it is only the log published time to DAS :).
>>
>> On Mon, Jun 13, 2016 at 11:43 AM, Sameera Ramasinghe <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> as a quick work around, in main.js of the livelogviewer, there is a line
>>>
>>> var tempDay = new 
>>> Date(parseInt(obj[i].values._eventTimeStamp)).toUTCString();
>>>
>>>
>>> change it to
>>>
>>> var tempDay = new Date(parseInt(obj[i].values._eventTimeStamp)).toString();
>>>
>>> this will change the timezone to browser time zone.
>>>
>>> On Mon, Jun 13, 2016 at 11:32 AM, Sameera Ramasinghe <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> That IST time-zone showing in the DAS explorer is the time the logs are
>>>> published to the DAS. Not the time contained in the logs. The log times are
>>>> in the "eventimestamp" field as epoch time. So we need to convert this
>>>> epoch time in JS level. I will work on a fix and let you know. If we can
>>>> get the server time zone, we can do as Ruwan said.
>>>>
>>>> On Mon, Jun 13, 2016 at 11:27 AM, Ruwan Abeykoon <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>> The time zone is something we need on all the Log Analyzer gadgets to
>>>>> handle properly, in the same way.
>>>>>
>>>>> Why we can not get the server time zone in AWS?
>>>>>
>>>>> What time zone a user is interested while looking at the logs and
>>>>> errors. I think it is the server time zone. This is the time the logs are
>>>>> being printed in respective carbon.log (if any).
>>>>>
>>>>>
>>>>> Cheers,
>>>>> Ruwan
>>>>>
>>>>> On Mon, Jun 13, 2016 at 11:16 AM, Ishara Cooray <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> (+ architecture)
>>>>>>
>>>>>>
>>>>>> On Mon, Jun 13, 2016 at 10:48 AM, Ishara Cooray <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> In fact, in cloud we cannot get the server time zone as hosted in
>>>>>>> AWS. So need to get the Browser Time Zone.
>>>>>>>
>>>>>>> *@Sameera,*
>>>>>>> Can we have this option in Log Analyzer Tool?
>>>>>>>
>>>>>>> Ishara Cooray
>>>>>>> Senior Software Engineer
>>>>>>> Mobile : +9477 262 9512
>>>>>>> WSO2, Inc. | http://wso2.com/
>>>>>>> Lean . Enterprise . Middleware
>>>>>>>
>>>>>>> On Mon, Jun 13, 2016 at 10:20 AM, Ruwan Abeykoon <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> +1
>>>>>>>> This should be based on Server Time Zone rather than Browser Time
>>>>>>>> Zone, I guess.
>>>>>>>> Or should there be an option to set the TZ as server or Browser ?
>>>>>>>> If so all the Log Analyzer gadgets should have the same option.
>>>>>>>>
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> Ruwan
>>>>>>>>
>>>>>>>> On Mon, Jun 13, 2016 at 10:02 AM, Ishara Cooray <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> In the Log Analyzer tool, the logs are shown with GMT time where
>>>>>>>>> as in DAS Data Explorer it is shown for me in IST.
>>>>>>>>>
>>>>>>>>> So i guess Log Analyzer Tool should show the localized time.
>>>>>>>>>
>>>>>>>>> *@Amila,*
>>>>>>>>> WDUT?
>>>>>>>>>
>>>>>>>>> Thanks.
>>>>>>>>> Ishara Cooray
>>>>>>>>> Senior Software Engineer
>>>>>>>>> Mobile : +9477 262 9512
>>>>>>>>> WSO2, Inc. | http://wso2.com/
>>>>>>>>> Lean . Enterprise . Middleware
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> *Ruwan Abeykoon*
>>>>>>>> *Associate Director/Architect**,*
>>>>>>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>>>>>>>> *lean.enterprise.middleware.*
>>>>>>>>
>>>>>>>> email: [email protected]
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Ruwan Abeykoon*
>>>>> *Associate Director/Architect**,*
>>>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>>>>> *lean.enterprise.middleware.*
>>>>>
>>>>> email: [email protected]
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Sameera Ramasinghe*
>>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>>> mobile: *+94 714489682*
>>>>
>>>
>>>
>>>
>>> --
>>> *Sameera Ramasinghe*
>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>> mobile: *+94 714489682*
>>>
>>
>>
>>
>> --
>> *Sameera Ramasinghe*
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> mobile: *+94 714489682*
>>
>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to