We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在NSTimer+SSAdd分类中
//时间戳转换成时间(YYYY-MM-dd HH:mm:ss) + (NSString *)getTimeWithTimeStamp:(long)timeStamp{ // 格式化时间 NSDateFormatter* formatter = [[NSDateFormatter alloc] init]; formatter.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:8]; [formatter setDateStyle:NSDateFormatterMediumStyle]; [formatter setTimeStyle:NSDateFormatterShortStyle]; [formatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"]; // 毫秒值转化为秒 /1000 NSDate* date = [NSDate dateWithTimeIntervalSince1970:timeStamp]; NSString* dateString = [formatter stringFromDate:date]; return dateString; }
时区的转化好像有点问题,显示的依旧是零时区时间,改成
formatter.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:8*3600];
就正常显示了
作者有时间看下这里
感谢开源~
The text was updated successfully, but these errors were encountered:
你好,静态版本的时间没有过多处理,已更新网易云IM ,你可以下载最新版本!!
Sorry, something went wrong.
No branches or pull requests
在NSTimer+SSAdd分类中
时区的转化好像有点问题,显示的依旧是零时区时间,改成
就正常显示了
作者有时间看下这里
感谢开源~
The text was updated successfully, but these errors were encountered: