Where the time in windows is 12:20 PM And the windows timezone is Cairo GMT+2 please note that in Cairo, Egypt we just stopped using Daylight saving time. so, it would be always GMT+2 for a couple of years I hope.
brianMon 12 Sep 2011
I am not sure I completely followed the issue with toHttpStr. Is the problem that Cairo timezone definition are out of date? I will take a look at updating tz database (assuming latest definitions have gone into zone info db)
brianMon 12 Sep 2011
@tamer,
I downloaded the latest zoneinfo database (2011j) and updated Fantom's timezone database - changeset. I did notice Cairo was one hour off, but it now looks correct. There is also some weirdness in the database for Eyptian rules in 2010 (looks like they are four or five overlapping rules), so 2010 historical timezones might not be completely accurate. Please let me know if this doesn't resolve your problem.
tamer Mon 12 Sep 2011
After setting timezone to Cairo in the config.props file calling DateTime.now does not show the correct time as windows
DateTime.now.toHttpStr() results Mon, 12 Sep 2011 10:20:54 GMT DateTime.now.toLocale("hh:mm a") results 13:20 p DateTime.now results 2011-09-12T13:20:54.852+03:00 Cairo
Where the time in windows is 12:20 PM And the windows timezone is Cairo GMT+2 please note that in Cairo, Egypt we just stopped using Daylight saving time. so, it would be always GMT+2 for a couple of years I hope.
brian Mon 12 Sep 2011
I am not sure I completely followed the issue with toHttpStr. Is the problem that Cairo timezone definition are out of date? I will take a look at updating tz database (assuming latest definitions have gone into zone info db)
brian Mon 12 Sep 2011
@tamer,
I downloaded the latest zoneinfo database (2011j) and updated Fantom's timezone database - changeset. I did notice Cairo was one hour off, but it now looks correct. There is also some weirdness in the database for Eyptian rules in 2010 (looks like they are four or five overlapping rules), so 2010 historical timezones might not be completely accurate. Please let me know if this doesn't resolve your problem.