zeevgetner
Programmer
hi everybody,
i want to get the system time.
as simple as it sounds it doesnt work.
im using the following code:
TimeZone tz = TimeZone.getTimeZone("Asia/Tel_Aviv");
Calendar c = Calendar.getInstance(tz);
formatter.setTimeZone(tz);
myDate = (formatter.format(c.getTime().getTime()));
what ever i try, i keep getting an hour after my real hour.
in some computers im getting the corect hour and in some am not.
what is the problem
i want to get the system time.
as simple as it sounds it doesnt work.
im using the following code:
TimeZone tz = TimeZone.getTimeZone("Asia/Tel_Aviv");
Calendar c = Calendar.getInstance(tz);
formatter.setTimeZone(tz);
myDate = (formatter.format(c.getTime().getTime()));
what ever i try, i keep getting an hour after my real hour.
in some computers im getting the corect hour and in some am not.
what is the problem