# Hours and Flights Periodically Reset...

**URL:** <https://forum.phpvms.net/t/hours-and-flights-periodically-reset/2176>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [March 9, 2010, 5:00pm UTC](https://forum.phpvms.net/t/hours-and-flights-periodically-reset/2176 "2010-03-09T17:00:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OneWorldVirtual](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/o/f17d59/32.png) [@OneWorldVirtual](https://forum.phpvms.net/u/OneWorldVirtual)\
**Post date:** [March 9, 2010, 5:00pm UTC](https://forum.phpvms.net/t/hours-and-flights-periodically-reset/2176/1 "2010-03-09T17:00:30Z")

</div>

Since the update to v2.0, there is an occasional time when a pilot uploads a PIREP and when it is approved the hours and flights reset to a lower number. For example, a pilot has 96.1 hours and 27 flights, uploaded 2 new ones taking him to 102.23 hours but instead it reset to 16 flights and 37.8 hours.

Is this a problem with the SQL database? we had to switch to a new one and port the info from the previous one, but I didn’t move the PIREPS (because the flight numbers changed).

It’s not really a big problem, as they can be manually edited obviously, but If anyone has any theories towards a resoloution then I’d be most grateful.

Cheers,

DeeQ @ [OWV](http://www.oneworldvirtual.netai.net/phpvms/)

---

<div class="post-metadata">

**Author:** ![simpilot](https://forum.phpvms.net/user_avatar/forum.phpvms.net/simpilot/32/26_2.png) [@simpilot](https://forum.phpvms.net/u/simpilot)\
**Post date:** [March 9, 2010, 5:52pm UTC](https://forum.phpvms.net/t/hours-and-flights-periodically-reset/2176/2 "2010-03-09T17:52:01Z")

</div>

If you have removed the prieps, which it seems may be the case here, you will start to see many odd things happen. When the system updates a pilots time and hours it recalculates all the pireps, so if they are not there they will not be in the final figures.

---

<div class="post-metadata">

**Author:** ![OneWorldVirtual](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/o/f17d59/32.png) [@OneWorldVirtual](https://forum.phpvms.net/u/OneWorldVirtual)\
**Post date:** [March 9, 2010, 6:05pm UTC](https://forum.phpvms.net/t/hours-and-flights-periodically-reset/2176/3 "2010-03-09T18:05:12Z")

</div>

> If you have removed the prieps, which it seems may be the case here, you will start to see many odd things happen. When the system updates a pilots time and hours it recalculates all the pireps, so if they are not there they will not be in the final figures.

Yeah thats what I figured. Thanks for the reply.

DeeQ @ OWV
