I have a set of REST APIs. There is a case where I would like to get data based on given time like below :
2020-02-06T00:00+09:30
If I'm in australia's time (Australia/Adelaide), I would send the above date in the API to get the respective data on feb 6th. +9.30 is the offset of Australian central standard time.
But, there is a case where the specified time falls in daylight saving period in that timezone. In the above mentioned timezone, daylight saving is followed from april to october with offset of (+10.30). So, if I had to get data of september, should client provide the necessary offset based on the date (with +9.30 for february's date and +10.30 for september's date)?
or should client send dates with it's current timezone's offset (oblivious to daylight) and should it be server's responsibility to identify dates that fall in daylight saving and normalize that date by one hour before processing? Which would be the proper way to handle such a case in REST? kindly assist.