Subversion Repositories SmartDukaan

Rev

Rev 25921 | Rev 25923 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25921 Rev 25922
Line 1318... Line 1318...
1318
		
1318
		
1319
		LocalDateTime now = LocalDateTime.now();
1319
		LocalDateTime now = LocalDateTime.now();
1320
		LocalDateTime from = now.with(LocalTime.MIN);
1320
		LocalDateTime from = now.with(LocalTime.MIN);
1321
		String timeString = "Today {}";
1321
		String timeString = "Today {}";
1322
		//Send yesterday's report
1322
		//Send yesterday's report
1323
		if(now.getHour() < 12) {
1323
		if(now.getHour() < 13) {
1324
			timeString = "Yesterday {}";
1324
			timeString = "Yesterday {}";
1325
			from = now.minusDays(1);
1325
			from = now.minusDays(1);
1326
			now = from.with(LocalTime.MAX);
1326
			now = from.with(LocalTime.MAX);
1327
			  
1327
			  
1328
		}
1328
		}