[SNMP4J] Problem with classe DateAndTime (SNMP4J-agent)
Taoufik BEN EZZAHHAF
b_taoufik at yahoo.com
Wed Nov 23 12:52:17 CET 2005
Hi every body,
method validateDateAndTime below presents an anomalie,
in fact
int month = (os.get(3) & 0xFF );
int date = (os.get(4) & 0xFF );
int hour = (os.get(5) & 0xFF );
int minute = (os.get(6) & 0xFF );
int second = (os.get(7) & 0xFF );
int deci = (os.get(8) & 0xFF );
should look like:
int month = (os.get(4) & 0xFF );
int date = (os.get(5) & 0xFF );
int hour = (os.get(6) & 0xFF );
int minute = (os.get(7) & 0xFF );
int second = (os.get(8) & 0xFF );
int deci = (os.get(9) & 0xFF );
the same problem exists in method makeCalendar :
String timezone = "GMT"+dateAndTimeValue.get(8)+
dateAndTimeValue.get(9)+":"+dateAndTimeValue.get(10);
Am i wrong?
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
More information about the SNMP4J
mailing list