I have a user parameter named inTimeZone, for which I created a parameter query with the following:
select '-4', 'EDT' as TZ
union select '-5', 'EST' as TZ
union select '-5', 'CDT' as TZ
union select -6, 'CST' as TZ
So when the user runs the report, they choose from the second column and I use the UTC offset in the first column to offset the UTC time so that our db's UTC timestamps can be converted to the user's TimeZone. MY DBA WILL NOT LOAD THE MYSQL TIMEZONE tables to our schema for various reasons, so I can't refer to text timezones like 'EDT', 'CST' for conversion.
1. I'd like to find a better way to capture the client's TimeZone offset for on-the-fly conversion, but everything I find assumes that I know javascript, and I've been unable to make this work.
2. I'd like to use the TZ column in my parameter query in a column's title so the user ends up seeing the column header of 'Time Zone: EST', 'Time Zone: CDT', etc. I've been able to get 'Time Zone: -5', for example, and I can CASE that result back to a text but this means that I can't differentiate between EST and CDT to display to the user reliably. Is it possible to utilize the second column of my parameter query as text in a column title?
Thanks,
Johnny