Sftp_GetAttributes callback file time values (General questions)
The values passed to my Sftp_GetAttributes callback are an hour later than I'm expecting. Perhaps it's a timezone issue. How can I find out more ? TIA, Keith.
The values passed to my Sftp_GetAttributes callback are an hour later than I'm expecting. Perhaps it's a timezone issue. How can I find out more ? TIA, Keith.
by Keith Anderson, (7126 days ago) @ Keith Anderson
The values passed to my Sftp_GetAttributes callback are an hour later than I'm expecting. Perhaps it's a timezone issue. How can I find out more ? TIA, Keith.
by wodAlan , (7126 days ago) @ Keith Anderson
Hi Keith,
Yes it could be, but irrespective on time zone also can be that the server time is set incorrectly. I suggest you to try with TimeZone Property
Did you try set TimeZone property in your code and set ti to ZoneUTC?
For example:
ftpdlx1.TimeZone = ZoneUTC
I hope that I helped.
Alan
by Keith Anderson, (7126 days ago) @ wodAlan
The values passed to my Sftp_GetAttributes callback are an hour later than I'm expecting. Perhaps it's a timezone issue. How can I find out more ? TIA, Keith.
With apologies for replying to myself: it looks like calling Sftp_SetTimezone(sftp, ZoneUTC) fixes this. I don't know why, but if it works ...
by Keith Anderson, (7126 days ago) @ Keith Anderson
Hi Keith,
Yes it could be, but irrespective on time zone also can be that the server time is set incorrectly. I suggest you to try with TimeZone Property
Did you try set TimeZone property in your code and set ti to ZoneUTC?
For example:
ftpdlx1.TimeZone = ZoneUTCI hope that I helped.
Alan
Thank you. As you might have seen, I found this myself.
The bit I don't understand is it doesn't look like the server time/zone is set incorrectly. For example, if I use another sftp client the timestamp is shown correctly.
by wodAlan , (7126 days ago) @ Keith Anderson
Keith,
Our clients, I mean costumers sometimes need another solution. Sometimes they need to know client time, not the server time and because of two needed ways we must give our costumers two choices and that's reason.
Regards,
Alan
by Keith Anderson, (7126 days ago) @ wodAlan
Keith,
Our clients, I mean costumers sometimes need another solution. Sometimes they need to know client time, not the server time and because of two needed ways we must give our costumers two choices and that's reason.
Regards,
Alan
Thanks for your response.
1 If I call Sftp_SetTimezone(sftp, ZoneUTC) I get back the file times I expect, so that's good.
2 I've been trying to work out where the extra hour is coming from. Could it be that daylight savings time is being applied from about 5 March ?
by wodAlan , (7126 days ago) @ Keith Anderson
Keith,
Yes you are right, your extra hour is coming from daylight saving from about 5 March.
Regards,
Alan
I really like these products - they are consistently first rate!
Brilliant, even works on the mobile phone...
Your professionalism is reflected into your email, your product and your web site. I am confident that these will make the difference.
We are having great success with your component ... email server that has over 750 000 mailboxes back ended by a SQL server...
Many thanks for your excellent support service. I can see why you have a long list of excellent testimonials on your website.
Your .NET components allow us to blend .NET technology seamlessly with secure communication, and with excellent technical support.
We have recently completed a large 1200+ location project where reliable Telnet and SSH connectivity was required. wodSSH worked flawlessly and allowed our staff to complete our project ontime and within budget.
Thanks! We love your software and your great support!
This has been, by far, the best experience I have ever had dealing with a support entity in my long career in the technical arena
Your professionalism is reflected into your email, your product and your web site. I am confident that these will make the difference.