[ 
https://issues.apache.org/jira/browse/ATLAS-4924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18065919#comment-18065919
 ] 

ASF subversion and git services commented on ATLAS-4924:
--------------------------------------------------------

Commit 48420ecb11397a412081177efb45f4e55b30d403 in atlas's branch 
refs/heads/atlas-2.5 from sheetalshah1007
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=48420ecb1 ]

ATLAS-4924: When client and server are on different timezones, searchFilter 
gives incorrect results using timerange operator (#346)

Co-authored-by: Sheetal Shah <[email protected]>
(cherry picked from commit 79cac300d8fdc7050f047fcf4f0150f4e8e9d26a)


> When client and server are on different timezones, searchFilter gives 
> incorrect results using timerange operator.
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-4924
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4924
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>            Reporter: Priyanshi Shah
>            Assignee: Sheetal Shah
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When client timezone is UTC and server is on PST timezone, search filters 
> will process the result according to the system timezone i.e PST and hence, 
> the results are wrongly fetched. This is an intermittent issue as if the 
> entities were created according to PST timezones then the search filter could 
> have fetched proper results.
> *Steps to reproduce:*
> *Scenario* : Using "Today" filter with timerange operator, also client and 
> server are on different timezones say UTC and PST:
>  
> {code:java}
> 1. Create two entities in UTC timezones.
>  For example: If Today is 18th Nov'24 set one entity createTime as 
> "1731888000000" and other as "1731974399000" which are basically start and 
> end time of the day.
> 2. Search that entity with its typedef and select "createTime" as 
> attributeName and operator as "Time Range" and value as "Today".
>  
> {code}
> *Results:*
> {+}Expectation{+}: Both the entities should be fetched.
> {+}Actual{+}: Only one entity is getting fetched having createTime as 
> "1731974399000".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to