Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with UTC conversion & WindowsTime
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00725377
Message ID:
00725391
Views:
17
Sorry, I forgot to add the error message:

Function argument value, type, or count is invalid.

I was also able to dig further (I was unable to see the source of con_time at first but realized it was because I was messing with my date/time and needed to recompile) to find exactly why it's blowing up ... but I'll still need your help to figure out what needs to be done to correct this.

The exact line of code is in the AdjustDate method of the ConvertTime class.
    lddate = DATE(tnyear, tnmonth, 1)
tnmonth is being passed in as spaces. This I traced back to the Get_Bias function of the ConvertTime class. The lines:
    lcstdsystime = SUBSTR(lctimezone, 69, 16)
    lcdaysystime = SUBSTR(lctimezone, 153, 16)
seem to return blank results. I think the Time Zone is being returned differently than you're expecting.

I'm running WinXP Pro. I don't know if that makes any difference.

Thanks again for whatever help you can offer!

Rodd
Previous
Reply
Map
View

Click here to load this message in the networking platform