~ubuntu-branches/ubuntu/saucy/geary/saucy-updates

« back to all changes in this revision

Viewing changes to src/client/util/util-date.vala

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-10-10 17:40:37 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20131010174037-5p5o4dlsoewek2kg
Tags: 0.4.0-0ubuntu1
New stable version

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
}
198
198
 
199
199
public string pretty_print(DateTime datetime, ClockFormat clock_format) {
 
200
    DateTime to_local = datetime.to_local();
200
201
    DateTime now = new DateTime.now_local();
201
 
    TimeSpan diff = now.difference(datetime);
 
202
    TimeSpan diff = now.difference(to_local);
202
203
    
203
 
    return pretty_print_coarse(as_coarse_date(datetime, now, diff), clock_format, datetime, diff);
 
204
    return pretty_print_coarse(as_coarse_date(to_local, now, diff), clock_format, to_local, diff);
204
205
}
205
206
 
206
207
public string pretty_print_verbose(DateTime datetime, ClockFormat clock_format) {