Android Question Getting rid of the timezone...

wimpie3

Well-Known Member
Licensed User
Longtime User
B4A's timezones are driving me crazy.

When I set the value of "mydate" to "0", I thought this would represent 1 JAN 1970, 00:00.

However, when I do a DateTime.GetHour(mydate), it seems DateTime takes into calculation the current timezone.

How can I use GetDayOfWeek, GetMonth, GetYear, GetHour and GetMinute without a timezone being added/subtracted? Do I really have to subtract the timezone myself every time? Or can I set a parameter somewhere to reset the timezone to 0 temporarily?
 

wimpie3

Well-Known Member
Licensed User
Longtime User
That thread does not help me. All it says is "Use DateUtils and everything will be fine." But dateutils does not have a GetDayOfWeek, GetMonth, GetYear, GetHour and GetMinute.
 
Upvote 0

wimpie3

Well-Known Member
Licensed User
Longtime User
Can you tell me why this is not the best solution? Any side effects? I don't need timezones at all in my application.
 
Upvote 0
Top