███████████-mobile: More accurate clicks handling. [#MOBMET-1212]

This commit is contained in:
Sergey Magidovich 2015-03-25 13:08:04 +03:00
parent b332a14f1f
commit 3d95d19283
2 changed files with 23 additions and 3 deletions

View File

@ -185,3 +185,12 @@ inline std::ostream & operator<< (std::ostream & ostr, const Date & date)
}
}
namespace std
{
inline string to_string(const mysqlxx::Date & date)
{
return date.toString();
}
}

View File

@ -28,7 +28,7 @@ private:
unsigned char m_hour;
unsigned char m_minute;
unsigned char m_second;
void init(time_t time)
{
if (unlikely(time > DATE_LUT_MAX || time == 0))
@ -39,10 +39,10 @@ private:
m_hour = 0;
m_minute = 0;
m_second = 0;
return;
}
DateLUT & date_lut = DateLUT::instance();
const DateLUT::Values & values = date_lut.getValues(time);
@ -190,3 +190,14 @@ inline std::ostream & operator<< (std::ostream & ostr, const DateTime & datetime
}
}
namespace std
{
inline string to_string(const mysqlxx::DateTime & datetime)
{
stringstream str;
str << datetime;
return str.str();
}
}