Details
Description
I realize that this would invalidate the $_timezone member, but it would be nice if one could manually modify the $_offset parameter using some getters and setters. In contrast, it would also be nice to be able to give setTimeZone something other than the PHP timezones (more along the lines of "-7" or "GMT+0600"). My reasoning for wanting to set the $_offset member myself are that I can get a unix timestamp for the server, and a unix timestamp for the client, so I can get the value of $_offset, but I can't easily get a value that setTimeZone likes.
No, there will be no setter/getter for this private property, because there are dependencies on other members.
Offset is used for holding the offset for the servers time to the real time when using Zend_TimeSync.
When creating a date object you can simply set Timezones by setting a real timezone along the olson database, or a windows timezone using Zend_Locale or simply an hour offset like +0600 or -02:00 by using the proper input formats.
Anyhow you calculate this, you must give an hour offset. All other things will not be recognised as Timezone setting as timezones are ALWAYS hour offsets.
There is also a getTimezoneByString method which could be handy.