Time offset for smart sync |
Veteran
|
I will answer my own question in case it helps someone else
To make Smart Sync work, use the following: * Time offset = remote server time minus local time (7 hours for my example) * Use SFTP (not FTP) to enable Smart Sync to set file times on the remote server. A nice improvement would be for PhpED to automatically adjust for daylight saving |
||||||||||||||
|
Site Admin
|
different countries use different schedule for daylight saving period. Even if we know the OFFSET in hours, we still do not know the COUNTRY |
||||||||||||||
_________________ The PHP IDE team |
Veteran
|
That is true, but...
Why not let the OS manage the time zones and daylight saving changes? As far as I know, Windows (probably Linux too) internally uses GMT for file times, and merely displays file times to the user in accordance with the time zone setting on the PC. Thus, in principle, all the PhpEd needs to know is the timezone of the remote server -- it should be able to figure out the timezone of the local PC and the time difference by itself |
||||||||||||
|
Veteran
|
How about a feature to determine the difference automatically? The IDE could save a file to the server and then check its timestamp and figure out the difference from local time. Since we're only concerned about hours, worries about the slight delay are mostly minimized and the one edge case remaining (doing the operation right around the hour change-over) is pretty easy to detect and handle.
|
||||||||||||
|
Site Admin
|
it's not about determining the difference at all
it's about daylight may affect the difference when is already set. Certainly, if both client and server operate in GMT, there should be no problem at all. |
||||||||||||
_________________ The PHP IDE team |
Veteran
|
Your comment does not solve the problem at all In contrast, I think bobwilliams is on to a nice idea. |
||||||||||||||
|
Site Admin
|
I do not see any problems there. If your server is located in another country that uses different daylight saving schedule, don't forget to adjust timeoffset two times a year.
|
||||||||||||
_________________ The PHP IDE team |
Time offset for smart sync |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by