|
@@ -113,8 +113,8 @@ std::string file_last_modify_time(const std::string& filepath)
|
|
|
ftime - decltype(ftime)::clock::now() + std::chrono::system_clock::now()
|
|
ftime - decltype(ftime)::clock::now() + std::chrono::system_clock::now()
|
|
|
);
|
|
);
|
|
|
// 转为 time_t(UNIX 时间戳)
|
|
// 转为 time_t(UNIX 时间戳)
|
|
|
- last_modify_time = std::chrono::system_clock::to_time_t(sctp);
|
|
|
|
|
- return last_modify_time;
|
|
|
|
|
|
|
+ std::string last_modify_time = std::chrono::system_clock::to_time_t(sctp);
|
|
|
|
|
+ return ylib::time::to_gmt(last_modify_time, last_modify_time);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
void module::globalfuncs::regist(sol::state* lua)
|
|
void module::globalfuncs::regist(sol::state* lua)
|