motia 0.5.11-beta.120-722203 → 0.5.11-beta.120-559255
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from datetime import datetime
|
|
1
|
+
from datetime import datetime, timezone
|
|
2
2
|
|
|
3
3
|
config = {
|
|
4
4
|
"type": "cron",
|
|
@@ -14,7 +14,7 @@ async def handler(context):
|
|
|
14
14
|
|
|
15
15
|
for item in state_value:
|
|
16
16
|
# check if current date is after item.ship_date
|
|
17
|
-
current_date = datetime.now()
|
|
17
|
+
current_date = datetime.now(timezone.utc)
|
|
18
18
|
ship_date = datetime.fromisoformat(item.get("shipDate", "").replace('Z', '+00:00'))
|
|
19
19
|
|
|
20
20
|
if not item.get("complete", False) and current_date > ship_date:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from datetime import datetime
|
|
1
|
+
from datetime import datetime, timezone
|
|
2
2
|
|
|
3
3
|
config = {
|
|
4
4
|
"type": "cron",
|
|
@@ -14,7 +14,7 @@ async def handler(context):
|
|
|
14
14
|
|
|
15
15
|
for item in state_value:
|
|
16
16
|
# check if current date is after item.ship_date
|
|
17
|
-
current_date = datetime.now()
|
|
17
|
+
current_date = datetime.now(timezone.utc)
|
|
18
18
|
ship_date = datetime.fromisoformat(item.get("shipDate", "").replace('Z', '+00:00'))
|
|
19
19
|
|
|
20
20
|
if not item.get("complete", False) and current_date > ship_date:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motia",
|
|
3
3
|
"description": "A Modern Unified Backend Framework for APIs, Events and Agents",
|
|
4
|
-
"version": "0.5.11-beta.120-
|
|
4
|
+
"version": "0.5.11-beta.120-559255",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"inquirer": "^8.2.5",
|
|
44
44
|
"table": "^6.9.0",
|
|
45
45
|
"ts-node": "^10.9.2",
|
|
46
|
-
"@motiadev/core": "0.5.11-beta.120-
|
|
47
|
-
"@motiadev/
|
|
48
|
-
"@motiadev/
|
|
46
|
+
"@motiadev/core": "0.5.11-beta.120-559255",
|
|
47
|
+
"@motiadev/stream-client-node": "0.5.11-beta.120-559255",
|
|
48
|
+
"@motiadev/workbench": "0.5.11-beta.120-559255"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@amplitude/analytics-types": "^2.9.2",
|