and i tryed to set olympiad_end in the oly data table
1286786880 = Monday, October 11, 2010 10:48:00 AM
period : 0
i started it and it said in console 8217 minutes when olympiad end . lol ? it should saay in 2 minutes olympiad end becuase i have run it Monday, October 11, 2010 10:46:00 AM
its a big mistery .
also i changed this but no know what it do and what its make . i just need a recipe for 1 week oly ..... a setup . dont have someone it ?
and i need end oly today and the next time it will end at Sunday , 24:00
Code: Select all
protected void setNewOlympiadEnd() { SystemMessage sm = new SystemMessage(SystemMessageId.OLYMPIAD_PERIOD_S1_HAS_STARTED); sm.addNumber(_currentCycle); Announcements.getInstance().announceToAll(sm); //tomasko edit Calendar currentTime = Calendar.getInstance(); currentTime.add(Calendar.WEEK_OF_MONTH, 1); currentTime.set(Calendar.DAY_OF_WEEK, 1); currentTime.set(Calendar.AM_PM, Calendar.AM); currentTime.set(Calendar.HOUR, 12); currentTime.set(Calendar.MINUTE, 0); currentTime.set(Calendar.SECOND, 0); _olympiadEnd = currentTime.getTimeInMillis(); Calendar nextChange = Calendar.getInstance(); _nextWeeklyChange = nextChange.getTimeInMillis() + WEEKLY_PERIOD; scheduleWeeklyChange(); }