Besides the default TF, I think GETTIMEFRAME has yet another bug in the monthly TF ! For example if we run this code:
1
2
3
timeframe(1month)
c=gettimeframe/(60*60*24)// days per month
returnc
it should return the number of days of the actual month but it will return 30 days for every month no matter what. I guess this bug will propagate to the quarterly and yearly TFs, but I didnt test those.