@pittica/google-business-intelligence-helpers 1.14.0 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -113,10 +113,10 @@ exports.getDatesUntil = (until = new Date(), dateFormat = "YYYY-MM-DD") => {
113
113
  */
114
114
  exports.getFormattedDate = (date = null, dateFormat = "YYYY-MM-DD") => {
115
115
  if (date != null) {
116
- return this.formatDate(typeof date === "string" ? this.stringToDate(date) : date, dateFormat);
116
+ return this.formatDate(typeof date === "string" ? this.stringToDateUTC(date) : date, dateFormat);
117
117
  } else {
118
- const now = this.stringToDate(this.getNow());
119
- now.setDate(now.getDate() - 1);
118
+ const now = this.stringToDateUTC(this.getNow());
119
+ now.setDate(now.getDate());
120
120
  return this.formatDate(now, dateFormat);
121
121
  }
122
122
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pittica/google-business-intelligence-helpers",
3
3
  "private": false,
4
- "version": "1.14.0",
4
+ "version": "1.14.1",
5
5
  "description": "Helpers for business intelligence for Google Cloud.",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {