I have a problem with the time zone in my program.
I need to use maritius timezone for my application, for that i have set my system's timezone to maritius
But when i execute this piece of code its just showing the IST in my code.
Do i miss anything while coding,
Please help me in this issue.
Paul Clapham wrote:The Java runtime will get your timezone from the operating system. So, what is your operating system and how are you setting your timezone?
Actually i am using Linux OS. Long back i have installed java in my system. In that particular time my Timezone is IST.
recently due to requirement i have changed my system's Timezone to Mauritius.
and tried the above code for getting the Mauritius timezone.
But still it gave output as IST. So i am very confused about that. Upto my knowledge i know that java program will take system time as reference, after changig the timezone in my system also it is showing the older timezone only.