The time is calculated from the file modified time because, at least on my server, it is not created each time but modified. The clientrawhour.txt is the file and it is created at 59 minutes past each hour and the data contained in it represents the data for the hour which is just about to end, and in my testing I found that mine was always uploaded on the hour or just after the hour so I take the time and reduce the hour value by one. Now it is just possible that your weather PC creates this file say at 16:59:00 and uploads it so the time stamp is 16:59:59 in which case my calculation will fail because it should be the hour ending at 16:59:59 but the graph will display hour 15. The problem here is that this data file does not have a timestamp so I have to calculate the time represented somehow. WDL gets round it be only showing the minutes as a negative value. I decided on this way to make it the same as the other graphs and I think the data may well be uploaded more than once per hour as well in which case the second time it uploads the time will display correctly.
If someone can suggest a more reliable way then I can change it, or maybe we could ask Brian to add the timestamp to the file showing when the data is created which would be the best way to do it.
Stuart
EDIT: I do think in retrospect we need a time stamp in the file because if your server is in a different timezone it will also show wrong since I'm using the server file time. Yes I know I could get PHP to work with the correct timezone but I think the best way is to ask Brian to add the time stamp.