mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Mac: Add support for cef_time_t.day_of_week (issue #629).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@690 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -8,9 +8,7 @@ void cef_time_to_basetime(const cef_time_t& cef_time, base::Time& time) {
|
||||
base::Time::Exploded exploded;
|
||||
exploded.year = cef_time.year;
|
||||
exploded.month = cef_time.month;
|
||||
#if !defined(OS_MACOSX)
|
||||
exploded.day_of_week = cef_time.day_of_week;
|
||||
#endif
|
||||
exploded.day_of_month = cef_time.day_of_month;
|
||||
exploded.hour = cef_time.hour;
|
||||
exploded.minute = cef_time.minute;
|
||||
@ -24,9 +22,7 @@ void cef_time_from_basetime(const base::Time& time, cef_time_t& cef_time) {
|
||||
time.UTCExplode(&exploded);
|
||||
cef_time.year = exploded.year;
|
||||
cef_time.month = exploded.month;
|
||||
#if !defined(OS_MACOSX)
|
||||
cef_time.day_of_week = exploded.day_of_week;
|
||||
#endif
|
||||
cef_time.day_of_month = exploded.day_of_month;
|
||||
cef_time.hour = exploded.hour;
|
||||
cef_time.minute = exploded.minute;
|
||||
|
Reference in New Issue
Block a user