Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-194) was last changed on 29-Nov-2007 14:37 by JohnGill  

This page was created on 27-Jan-2002 12:58 by 212.90.75.172

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 3 changed one line
* Automatic notification of page changes (someone would need to write a script that would check the [RecentChanges], then email anyone. See [NotificationList] for a running example of this.
* Automatic notification of page changes (someone would need to write a script that would check the [RecentChanges], then email anyone). See [NotificationList] for a running example of this.
At line 376 added 9 lines
[MahlenMorris]: I've noticed a bug in the recentChanges() RPC code; as your comment there wonders, it's not doing the time zone conversion correctly. I noticed this because I was seeing a file on the change list that shouldn't have been there. The only code I've been able come up with that correctly determines the UTC-local time zone offset is:{{{
Calendar cal = Calendar.getInstance();
TimeZone local = TimeZone.getDefault();
long offset = local.getOffset(cal.get(Calendar.ERA), cal.get(Calendar.YEAR), cal.get(Calendar.MONTH),
cal.get(Calendar.DAY_OF_MONTH), cal.get(Calendar.DAY_OF_WEEK), 0);
System.out.println(offset);
}}}
''offset'' is thus the number of millis to __add__ to UTC to get local time. This is working correctly for me; in my case (Pacific Standard Time) it's -28800000. Seems awkward, I know, but i think the complexity is due to the fact that the offset changes over time, and that some places, like Hawaii, have actually changed their offsets at points in the past. Java 1.4 has a slightly better version of getOffset(), but I didn't want to lock my code to Java 1.4.
Version Date Modified Size Author Changes ... Change note
194 29-Nov-2007 14:37 5.787 kB JohnGill to previous Someone replaced the page content with "wo"
193 28-Nov-2007 18:49 0.004 kB 60.190.240.76 to previous | to last
192 12-Oct-2007 06:43 5.787 kB JanneJalkanen to previous | to last
191 12-Oct-2007 05:32 5.797 kB 203.69.39.251 to previous | to last
190 06-Oct-2007 11:28 5.787 kB 141.7.56.2 to previous | to last restore
189 06-Oct-2007 03:10 0.007 kB 217.16.16.218 to previous | to last t922t
188 26-Sep-2007 23:47 5.787 kB JanneJalkanen to previous | to last
187 26-Sep-2007 02:58 5.796 kB SitriCelra to previous | to last
186 21-Jul-2007 03:09 5.787 kB MurrayAltheim to previous | to last removed noise
185 20-Jul-2007 23:57 5.864 kB 1001������ to previous | to last Comment by 1001������
184 20-Jul-2007 23:57 0.008 kB 60.191.36.91 to previous | to last Comment by 1001������
183 21-Jan-2007 17:15 5.815 kB 62.99.252.218 to previous | to last old phpwiki version
182 11-Jan-2007 09:13 5.801 kB GusHome to previous | to last
181 11-Jan-2007 09:10 5.894 kB GusHome to previous | to last Comment by GusHome
« This page (revision-194) was last changed on 29-Nov-2007 14:37 by JohnGill