FiddlerScript is written in JScript.NET, not C#, so you don't declare variables like that.
The first thing to fix is this:
var pstZone : TimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time");
On Tuesday, July 24, 2012 5:39:07 AM UTC-7, R_MAL wrote:
Hi,
I want to know if it is possible to convert the local time shown by fiddler to customized timezone? I tried changing the CustomRules.js file to get the information but I am always getting this error, please refer to the screenshot attached.
This is what I added in the Rules file:
TimeZoneInfo pstZone = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time");
var tzStr = pstZone.IsDaylightSavingTime(oSessions[x].Timers.ClientBeginRequest) ? pstZone.DaylightName : pstZone.StandardName;
var startPacific = TimeZoneInfo.ConvertTime(oSessions[x].Timers.ClientBeginRequest, TimeZoneInfo.Local, pstZone);
var endPacific = TimeZoneInfo.ConvertTime(oSessions[x].Timers.ClientDoneResponse, TimeZoneInfo.Local, pstZone);
Please help me.
Thanks in advance