Re: Time zones problem

Posted by Biplob Biswas on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Time-zones-problem-tp14907p14925.html

Hi Alex,

Your problem sounds interesting and I have always found dealing with timestamps cumbersome.

Nevertheless, what I understand is that your start and end timsstamp for American and European customers are based on their local clock.

For ex the start and end timestamp of 12 AM - 12 AM in america would be different for the same time in europe (also would be different across timezones with the continent as well)

What I can think of right now is to define your start and end timestamp from a reference timezone like take UTC as your reference and define one time globally. It solves your problem of creating multiple windows for all timezones but may not satisfy your customers need as the 1 day would be defined not from midnight anymore (if thats what you need).

Otherwise, AFAIK about Flink ...you would have to define the timewindows for all the timezones u need, but the experts here may point out to some better solution.

Regards,
Biplob