Avoid the use of gmtime with Android as not available.