summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-12-14 15:13:06 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-12-14 15:13:06 +0000
commitae020bb4a28826f6132b9710031a7d84ad272f8c (patch)
tree94ddae9abed9bb073c5e42a0cf366fba228f8619
parent5faf1ff8cc9ffb711dc8d47ed8eb1cc7f650960a (diff)
need to use ecore_time_unix_get() to have real dates here
SVN revision: 80956
-rw-r--r--src/lib/etrophy.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/etrophy.c b/src/lib/etrophy.c
index 9443a3c..d621856 100644
--- a/src/lib/etrophy.c
+++ b/src/lib/etrophy.c
@@ -145,7 +145,7 @@ etrophy_trophy_new(const char *name, const char *description, Etrophy_Trophy_Vis
145 trophy->name = eina_stringshare_add(name); 145 trophy->name = eina_stringshare_add(name);
146 trophy->description = eina_stringshare_add(description); 146 trophy->description = eina_stringshare_add(description);
147 trophy->visibility = visibility; 147 trophy->visibility = visibility;
148 trophy->date = (unsigned int)ecore_time_get(); 148 trophy->date = (unsigned int)ecore_time_unix_get();
149 trophy->goal = goal; 149 trophy->goal = goal;
150 trophy->points = points; 150 trophy->points = points;
151 151
@@ -210,7 +210,7 @@ etrophy_trophy_counter_set(Etrophy_Trophy *trophy, unsigned int value)
210 if (trophy->counter > trophy->goal) 210 if (trophy->counter > trophy->goal)
211 trophy->counter = trophy->goal; 211 trophy->counter = trophy->goal;
212 212
213 trophy->date = (unsigned int)ecore_time_get(); 213 trophy->date = (unsigned int)ecore_time_unix_get();
214} 214}
215 215
216EAPI inline void 216EAPI inline void
@@ -224,7 +224,7 @@ etrophy_trophy_counter_increment(Etrophy_Trophy *trophy, unsigned int value)
224 if (trophy->counter > trophy->goal) 224 if (trophy->counter > trophy->goal)
225 trophy->counter = trophy->goal; 225 trophy->counter = trophy->goal;
226 226
227 trophy->date = (unsigned int)ecore_time_get(); 227 trophy->date = (unsigned int)ecore_time_unix_get();
228} 228}
229 229
230EAPI inline Eina_Bool 230EAPI inline Eina_Bool
@@ -283,7 +283,7 @@ etrophy_lock_new(const char *name, Etrophy_Lock_State state)
283 283
284 lock->name = eina_stringshare_add(name); 284 lock->name = eina_stringshare_add(name);
285 lock->state = state; 285 lock->state = state;
286 lock->date = (unsigned int)ecore_time_get(); 286 lock->date = (unsigned int)ecore_time_unix_get();
287 287
288 return lock; 288 return lock;
289} 289}
@@ -316,7 +316,7 @@ etrophy_lock_state_set(Etrophy_Lock *lock, Etrophy_Lock_State state)
316 EINA_SAFETY_ON_NULL_RETURN(lock); 316 EINA_SAFETY_ON_NULL_RETURN(lock);
317 if (state >= ETROPHY_LOCK_STATE_LAST_VALUE) return; 317 if (state >= ETROPHY_LOCK_STATE_LAST_VALUE) return;
318 lock->state = state; 318 lock->state = state;
319 lock->date = (unsigned int)ecore_time_get(); 319 lock->date = (unsigned int)ecore_time_unix_get();
320} 320}
321 321
322EAPI inline unsigned int 322EAPI inline unsigned int
@@ -365,7 +365,7 @@ etrophy_score_new(const char *player_name, int score)
365 365
366 escore->player_name = eina_stringshare_add(player_name); 366 escore->player_name = eina_stringshare_add(player_name);
367 escore->score = score; 367 escore->score = score;
368 escore->date = (unsigned int)ecore_time_get(); 368 escore->date = (unsigned int)ecore_time_unix_get();
369 369
370 DBG("Score created. Player: %s, score: %i", player_name, score); 370 DBG("Score created. Player: %s, score: %i", player_name, score);
371 371