Welcome to mirror list, hosted at ThFree Co, Russian Federation.

parsetimestamp.js « filters « scripts « ngax « webroot « Server « Duplicati - github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9870a22e31bb28fa6da79f19b5ac8e5f7259172e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
backupApp.filter('parsetimestamp', function(AppUtils) {
  return function(value) {
  	if (value == null)
  		return null;

  	if (typeof(value) != typeof(new Date()))
	{
	  	if (typeof(value) == typeof(''))
			value =  AppUtils.parseDate(value);
	  	else
	  		value = new Date(parseInt(value) * 1000);
	}

  	return AppUtils.toDisplayDateAndTime(value);
  }
});