snakebyte 0 Posted July 12, 2003 I am currently working with the beautiful SEBNam Pack 2.0 to create a Vietnam Campaign which depicts some of the key events that occurred during the fall 1965 in South Vietnam Central Highlands: The Pleiku Campaign. A few missions have already been completed, but the full campaign is not completed yet. The problem: I am not able to set the day of the week correctly in the editor to reflect actual days of 1965. As the editor does not allow to set the year, I have tried to edit manually the mission.sqm file, and made the following change: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class Intel { year=1965; month=11; day=14; hour=10; }; This trick seems to work from January 2nd, 1970 and onward (the day of the week is correct, for example Jan 2nd 1970 returns Friday, which is correct). Before January 2nd, 1970, OPF returns always Sunday (For example Sunday, Jan 1st 1970, which is obviously incorrect). Have you also noticed this issue? Is it a limitation from OPF? Is there a way to bypass this problem (other than changing the year to an equivalent year in terms of "days of the week", for example use 1971 instead of 1965, the calendar being equal on both these years)? Thanks in advance. John. Share this post Link to post Share on other sites
edc 0 Posted July 12, 2003 It wouldn't really surprise me if there's problems before the yeaer 1970, because a lot of computer stuff is measured from 1-1-1970(for example, on this forum, after they changed it a little, all of the edits from before they changed it, said that the edit occured on 12-31-1969.). Share this post Link to post Share on other sites
Skul 0 Posted July 12, 2003 Wow! I never knew OFP could set the days of the week for other years! [Gareth Gates must die] Share this post Link to post Share on other sites
Wadmann 0 Posted July 16, 2003 I read somewhere that the internal calendar is based on the year 1985 which was a leap year. I think that this may have something to do with your problem as it reads the dates as a day earlier ( 5th = 4th ). If I can find the post that relates to this I will edit my reply and direct you to it. Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Wadmann Share this post Link to post Share on other sites